mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 17:45:02 +01:00
[MIRROR] Improves Readability/Documentation of SSTicker.force_ending [MDB IGNORE] (#17633)
* Improves Readability/Documentation of SSTicker.force_ending (#71329) ## About The Pull Request Hey there, force_ending was a boolean (with inconsistent usage, flip-flopping between using TRUE/FALSE and 1/0 variables), so let's just change it all over to the macros and call it a good day. I also updated documentation of the variables in that "code block" in SSTicker while in the area because changing just one line made it look ugly. Some of the documentation was no longer current to it's... current use in code, so I updated those as well. ## Why It's Good For The Game Pure code improvement, DMdocs are swell, and readability is kino. ## Changelog Nothing here should affect players. * Improves Readability/Documentation of SSTicker.force_ending Co-authored-by: san7890 <the@san7890.com>
This commit is contained in:
@@ -222,7 +222,7 @@
|
||||
if(tgui_alert(usr, "This will end the round, are you SURE you want to do this?", "Confirmation", list("Yes", "No")) == "Yes")
|
||||
if(tgui_alert(usr, "Final Confirmation: End the round NOW?", "Confirmation", list("Yes", "No")) == "Yes")
|
||||
message_admins(span_adminnotice("[key_name_admin(usr)] has ended the round."))
|
||||
SSticker.force_ending = 1 //Yeah there we go APC destroyed mission accomplished
|
||||
SSticker.force_ending = TRUE //Yeah there we go APC destroyed mission accomplished
|
||||
return
|
||||
else
|
||||
message_admins(span_adminnotice("[key_name_admin(usr)] decided against ending the round."))
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
if(confirm == "Cancel")
|
||||
return
|
||||
if(confirm == "Yes")
|
||||
SSticker.force_ending = 1
|
||||
SSticker.force_ending = TRUE
|
||||
SSblackbox.record_feedback("tally", "admin_verb", 1, "End Round") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/toggleooc()
|
||||
|
||||
Reference in New Issue
Block a user