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
+1 -1
View File
@@ -67,7 +67,7 @@
for (var/obj/item/disk/surgery/design_disk as anything in subtypesof(/obj/item/disk/surgery))
design_disk = new design_disk()
for (var/surgery_type as anything in design_disk.surgeries)
for (var/surgery_type in design_disk.surgeries)
for (var/design_id in all_designs)
var/datum/design/surgery/design = all_designs[design_id]
if (ispath(design, /datum/design/surgery) && design::surgery == surgery_type)
+1 -1
View File
@@ -3,7 +3,7 @@
/datum/unit_test/valid_dna_infusion/Run()
for(var/datum/infuser_entry/infuser_entry as anything in flatten_list(GLOB.infuser_entries))
for(var/input_type as anything in infuser_entry.input_obj_or_mob)
for(var/input_type in infuser_entry.input_obj_or_mob)
if(ispath(input_type, /mob/living))
continue
var/atom/movable/movable = allocate(input_type)
+1 -1
View File
@@ -449,7 +449,7 @@
/datum/fish_source/unit_test_all_fish
/datum/fish_source/unit_test_all_fish/New()
for(var/fish_type as anything in subtypesof(/obj/item/fish))
for(var/fish_type in subtypesof(/obj/item/fish))
fish_table[fish_type] = 10
return ..()
+1 -1
View File
@@ -9,7 +9,7 @@
/datum/unit_test/geyser/Run()
//While we're at it just check em all
var/list/geysers = subtypesof(/obj/structure/geyser)
for(var/geyser_type as anything in geysers)
for(var/geyser_type in geysers)
var/obj/structure/geyser/wittel/geyser = allocate(geyser_type)
geyser.potency = geyser.max_volume //make it recharge in 1 tick
@@ -13,13 +13,13 @@
// Generates a list of render target -> PM for future use
var/list/render_target_to_plane = list()
for(var/plane_key as anything in our_group.plane_masters)
for(var/plane_key in our_group.plane_masters)
var/atom/movable/screen/plane_master/plane = our_group.plane_masters[plane_key]
if(plane.render_target)
render_target_to_plane[plane.render_target] = plane
for(var/plane_key as anything in our_group.plane_masters)
for(var/plane_key in our_group.plane_masters)
var/atom/movable/screen/plane_master/plane = our_group.plane_masters[plane_key]
if(!plane.multiz_scaled)
@@ -41,4 +41,3 @@
if(target.multiz_scaled)
TEST_FAIL("[plane.type] draws a render relay into [target.type]. Both are scaled by multiz, so this will cause strange transforms.\n\
consider making a new render plate that they can both draw to instead, or something of that nature.")
@@ -6,8 +6,8 @@
// Exclude soup from this test, they all have the same "reagents" just about
var/list/reactions_sans_soup = GLOB.chemical_reactions_list - subtypesof(/datum/chemical_reaction/food/soup)
for(var/reaction_type_a as anything in reactions_sans_soup)
for(var/reaction_type_b as anything in reactions_sans_soup)
for(var/reaction_type_a in reactions_sans_soup)
for(var/reaction_type_b in reactions_sans_soup)
if(reaction_type_a == reaction_type_b)
continue
var/datum/chemical_reaction/reaction_a = reactions_sans_soup[reaction_type_a]