[MIRROR] Refactors and fixes summon events/guns/magic [MDB IGNORE] (#11768)

* Refactors and fixes summon events/guns/magic

* fix

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: jjpark-kb <55967837+jjpark-kb@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-03-05 10:47:33 -05:00
committed by GitHub
co-authored by MrMelbert jjpark-kb
parent 2568144ca4
commit 1f27c74a4b
6 changed files with 218 additions and 188 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