Replaces dibs with Bay's ticket system. (#3984)

A user ahelping creates a ticket. Any further ahelps while that ticket is open will go to that ticket (and either adminhelp or pm an admin assigned to the ticket, if one has taken it).
A user can close their own ticket up until an admin takes it.
Admins can take tickets either manually or just by replying to the PM.
An admin taking a ticket notifies other admins.
If another admin attempts to take or respond to an assigned ticket, they receive a notification asking if they would like to join the ticket or cancel (any number of admins can join a ticket).
When an admin finishes with a ticket, they must close it -- both for logistics and closure for the user.
If there is an open ticket assigned to an active admin, round end is automatically delayed (unassigned tickets or tickets assigned to disconnected or afk admins do not delay). Round end will automatically continue once all active tickets are closed.
Both staff and non-staff have access to a ticket panel listing tickets, their statuses, and their messages. Non-staff can only see their own tickets. This panel is optional and all features are available inline with chat.
This commit is contained in:
Mustafa Kalash
2018-03-02 21:54:39 +02:00
committed by Erki
parent 1473298d05
commit 511e9c4e22
14 changed files with 448 additions and 120 deletions
+23 -5
View File
@@ -178,14 +178,32 @@ var/datum/controller/subsystem/ticker/SSticker
if(!delay_end)
world << "<span class='notice'><b>Restarting in [restart_timeout/10] seconds</b></span>"
var/wait_for_tickets
var/delay_notified = 0
do
wait_for_tickets = 0
for(var/datum/ticket/ticket in tickets)
if(ticket.is_active())
wait_for_tickets = 1
break
if(wait_for_tickets)
if(!delay_notified)
delay_notified = 1
message_admins("<span class='warning'><b>Automatically delaying restart due to active tickets.</b></span>")
to_world("<span class='notice'><b>An admin has delayed the round end</b></span>")
sleep(15 SECONDS)
else if(delay_notified)
message_admins("<span class='warning'><b>No active tickets remaining, restarting in [restart_timeout/10] seconds if an admin has not delayed the round end.</b></span>")
while(wait_for_tickets)
if(!delay_end)
sleep(restart_timeout)
if(!delay_end)
world.Reboot()
else
world << "<span class='notice'><b>An admin has delayed the round end</b></span>"
else
world << "<span class='notice'><b>An admin has delayed the round end</b></span>"
else if(!delay_notified)
to_world("<span class='notice'><b>An admin has delayed the round end</b></span>")
else if(!delay_notified)
to_world("<span class='notice'><b>An admin has delayed the round end</b></span>")
else if (mode_finished)
post_game = 1
@@ -463,7 +481,7 @@ var/datum/controller/subsystem/ticker/SSticker
var/turf/Mloc = M.loc
if (!Mloc)
continue
if (!istype(Mloc))
Mloc = get_turf(M)