Makes code better and shit

reeeeeeeeeeeeeeeeeee
This commit is contained in:
Tom Heeren
2017-03-23 16:04:12 -05:00
committed by GitHub
parent fb4a3b0500
commit 879a8507e4
+1 -3
View File
@@ -553,7 +553,7 @@ var/list/admin_verbs_snpc = list(
var/turf/epicenter = mob.loc
var/list/choices = list("Small Bomb", "Medium Bomb", "Big Bomb", "Custom Bomb", "Cancel")
var/choice = input("What size explosion would you like to produce?") in choices
var/choice = input("What size explosion would you like to produce?") as null|anything in choices
switch(choice)
if(null)
return 0
@@ -577,8 +577,6 @@ var/list/admin_verbs_snpc = list(
if(flash_range == null)
return
explosion(epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, 1, 1)
if("Cancel")
return //No really why wasn't this a thing before
log_admin("[key_name(usr)] created an admin explosion at [epicenter.loc]")
message_admins("<span class='adminnotice'>[key_name_admin(usr)] created an admin explosion at [epicenter.loc]</span>")
feedback_add_details("admin_verb","DB") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!