mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
port ADMIN_VERB and friends (#30646)
* port ADMIN_VERB and friends * some renaming * dumb * one more rename * never search and replace this codebase * fix TM issues, more renaming * add a static analysis to shore up user verbs * fix double message on roundstart * remove macro we're not using yet * convert remaining playsounds verbs * convert more verbs i missed somehow * why is this a completely different signature than everything else * fix ui_interact arg * fix logging view and others * buncha issues caught in TM * fix mentor tickets ui * fix bug report viewing * moron
This commit is contained in:
@@ -11,24 +11,19 @@ GLOBAL_VAR_INIT(send_emergency_team, FALSE)
|
||||
GLOBAL_VAR_INIT(ert_request_answered, FALSE)
|
||||
GLOBAL_LIST_EMPTY(ert_request_messages)
|
||||
|
||||
/client/proc/response_team()
|
||||
set name = "Dispatch CentComm Response Team"
|
||||
set category = "Event"
|
||||
set desc = "Send an CentComm response team to the station."
|
||||
|
||||
if(!check_rights(R_EVENT))
|
||||
return
|
||||
|
||||
USER_VERB(dispatch_ert, R_EVENT, "Dispatch CentComm Response Team", \
|
||||
"Send an CentComm response team to the station.", \
|
||||
VERB_CATEGORY_EVENT)
|
||||
if(SSticker.current_state < GAME_STATE_PLAYING)
|
||||
to_chat(usr, "<span class='warning'>The game hasn't started yet!</span>")
|
||||
to_chat(client, "<span class='warning'>The game hasn't started yet!</span>")
|
||||
return
|
||||
|
||||
if(SSticker.current_state == GAME_STATE_PREGAME)
|
||||
to_chat(usr, "<span class='warning'>The round hasn't started yet!</span>")
|
||||
to_chat(client, "<span class='warning'>The round hasn't started yet!</span>")
|
||||
return
|
||||
|
||||
var/datum/ui_module/ert_manager/E = new()
|
||||
E.ui_interact(usr)
|
||||
E.ui_interact(client.mob)
|
||||
|
||||
|
||||
/mob/proc/JoinResponseTeam()
|
||||
|
||||
Reference in New Issue
Block a user