Two as anything greps (and some other cleanup) (#92974)

This commit is contained in:
MrMelbert
2025-09-20 13:44:28 -04:00
committed by GitHub
parent ae3274238c
commit 750ca9d2ec
86 changed files with 128 additions and 127 deletions
@@ -452,7 +452,7 @@
var/mode = tgui_alert(usr, "Play all or a specific reaction?","Select Reaction", list("All", "Specific"))
if(mode == "All")
reactions_to_test.Cut()
for(var/reaction as anything in all_reaction_list)
for(var/reaction in all_reaction_list)
reactions_to_test += all_reaction_list[reaction]
current_reaction_index = 0
return TRUE
@@ -97,7 +97,7 @@
total_weight += target.w_class
if(to_process.len)
. += span_notice("Currently holding:")
for(var/target_name as anything in to_process)
for(var/target_name in to_process)
. += span_notice("[to_process[target_name]] [target_name]")
. += span_notice("Filled to <b>[round((total_weight / maximum_weight) * 100)]%</b> capacity.")
@@ -661,9 +661,9 @@ Basically, we fill the time between now and 2s from now with hands based off the
)
traumalist -= abstracttraumas
for (var/type as anything in forbiddentraumas)
for (var/type in forbiddentraumas)
traumalist -= typesof(type)
for (var/type as anything in forbiddensubtypes)
for (var/type in forbiddensubtypes)
traumalist -= subtypesof(type)
traumalist = shuffle(traumalist)
+1 -3
View File
@@ -405,9 +405,7 @@
holder.my_atom.audible_message("The [holder.my_atom] suddenly explodes, sending a shockwave rippling through the air!")
playsound(this_turf, 'sound/effects/chemistry/shockwave_explosion.ogg', 80, TRUE)
//Modified goonvortex
for(var/atom/movable/movey as anything in orange(range, this_turf))
if(!istype(movey, /atom/movable))
continue
for(var/atom/movable/movey in orange(range, this_turf))
if(isliving(movey) && damage)
var/mob/living/live = movey
live.apply_damage(damage)//Since this can be called multiple times
@@ -30,7 +30,7 @@
if(purge_power >= 1)
var/has_purging_chemical = FALSE
// They need one of the purge reagents in them
for(var/purging_chem as anything in PURGING_REAGENTS)
for(var/purging_chem in PURGING_REAGENTS)
if(holder.has_reagent(purging_chem))
// We have a purging chemical
has_purging_chemical = TRUE