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:
warriorstar-orion
2025-12-12 19:18:22 +00:00
committed by GitHub
parent f89b05ee88
commit 2a842644d5
92 changed files with 1751 additions and 3113 deletions
+7 -10
View File
@@ -320,20 +320,17 @@
// to_chat(world, "Easter calculates to be on [begin_day] of [begin_month] ([days_early] early) to [end_day] of [end_month] ([days_extra] extra) for 20[yy]")
return ..()
/client/proc/set_holiday(T as text|null)
set name = "Set Holiday"
set category = "Event"
set desc = "Force-set the Holiday variable to make the game think it's a certain day."
if(!check_rights(R_SERVER)) return
USER_VERB(set_holiday, R_SERVER, "Set Holiday", \
"Force-set the Holiday variable to make the game think it's a certain day.", \
VERB_CATEGORY_EVENT, \
T as text|null)
var/list/choice = list()
for(var/H in subtypesof(/datum/holiday))
choice += "[H]"
choice += "--CANCEL--"
var/selected = input("What holiday would you like to force?","Holiday Forcing","--CANCEL--") in choice
var/selected = input(client, "What holiday would you like to force?","Holiday Forcing","--CANCEL--") in choice
if(selected == "--CANCEL--")
return
@@ -352,5 +349,5 @@
//update our hub status
world.update_status()
message_admins("<span class='notice'>ADMIN: Event: [key_name_admin(src)] force-set Holiday to \"[H]\"</span>")
log_admin("[key_name(src)] force-set Holiday to \"[H]\"")
message_admins("<span class='notice'>ADMIN: Event: [key_name_admin(client)] force-set Holiday to \"[H]\"</span>")
log_admin("[key_name(client)] force-set Holiday to \"[H]\"")