Refactors and fixes summon events/guns/magic (#64970)

This commit is contained in:
MrMelbert
2022-02-26 16:05:19 -08:00
committed by GitHub
parent ea700eb5d1
commit f20d2b1824
6 changed files with 216 additions and 184 deletions
+11 -9
View File
@@ -293,7 +293,8 @@ GLOBAL_DATUM(everyone_a_traitor, /datum/everyone_is_a_traitor_controller)
if("All Antags!")
survivor_probability = 100
rightandwrong(SUMMON_GUNS, holder, survivor_probability)
summon_guns(holder, survivor_probability)
if("magic")
if(!is_funmin)
return
@@ -305,24 +306,25 @@ GLOBAL_DATUM(everyone_a_traitor, /datum/everyone_is_a_traitor_controller)
if("All Antags!")
survivor_probability = 100
rightandwrong(SUMMON_MAGIC, holder, survivor_probability)
summon_magic(holder, survivor_probability)
if("events")
if(!is_funmin)
return
if(!SSevents.wizardmode)
if(tgui_alert(usr,"Do you want to toggle summon events on?",,list("Yes","No")) == "Yes")
summonevents()
SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Summon Events", "Activate"))
else
if(SSevents.wizardmode)
switch(tgui_alert(usr,"What would you like to do?",,list("Intensify Summon Events","Turn Off Summon Events","Nothing")))
if("Intensify Summon Events")
summonevents()
summon_events(holder)
SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Summon Events", "Intensify"))
if("Turn Off Summon Events")
SSevents.toggleWizardmode()
SSevents.resetFrequency()
SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Summon Events", "Disable"))
else
if(tgui_alert(usr,"Do you want to toggle summon events on?",,list("Yes","No")) == "Yes")
summon_events(holder)
SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Summon Events", "Activate"))
if("eagles")
if(!is_funmin)
return