Files
Paradise/code/modules/admin/verbs/space_transitions.dm
warriorstar-orion 2a842644d5 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
2025-12-12 19:18:22 +00:00

33 lines
1.6 KiB
Plaintext

USER_VERB_VISIBILITY(redo_space_transitions, VERB_VISIBILITY_FLAG_MOREDEBUG)
USER_VERB(redo_space_transitions, R_ADMIN|R_DEBUG, "Remake Space Transitions", "Re-assigns all space transitions", VERB_CATEGORY_DEBUG)
var/choice = alert(client, "Do you want to rebuild space transitions?", null,"Yes", "No")
if(choice == "No")
return
message_admins("[key_name_admin(client)] re-assigned all space transitions")
GLOB.space_manager.do_transition_setup()
log_admin("[key_name(client)] re-assigned all space transitions")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Remake Space Transitions") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
USER_VERB_VISIBILITY(make_turf_space_map, VERB_VISIBILITY_FLAG_MOREDEBUG)
USER_VERB(make_turf_space_map, R_ADMIN|R_DEBUG, "Make Space Map", "Create a map of the space levels as turfs at your feet", VERB_CATEGORY_DEBUG)
var/choice = alert(client, "Are you sure you want to make a space map out of turfs?", null,"Yes","No")
if(choice == "No")
return
var/static/list/sectortypes = list(TRANSITION_TAG_SPACE, TRANSITION_TAG_LAVALAND)
var/sectortype = tgui_input_list(client, "Please select sector type", "", sectortypes)
if(!(sectortype in sectortypes))
return
message_admins("[key_name_admin(client)] made a space map")
GLOB.space_manager.map_as_turfs(get_turf(client.mob), sectortype)
log_admin("[key_name(client)] made a space map")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Make Space Map") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!