Skip to content

Commit

Permalink
[MIRROR] exclude deathmatch loadouts from outfit_sanity (#1592) (#2526)
Browse files Browse the repository at this point in the history
* exclude deathmatch loadouts from outfit_sanity (#82024)

* exclude deathmatch loadouts from outfit_sanity

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: anettera <[email protected]>
  • Loading branch information
3 people authored Mar 24, 2024
1 parent 064d70a commit bdd57ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/modules/unit_tests/outfit_sanity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@
back = /obj/item/storage/backpack
backpack_contents = list(/obj/item/clothing/mask/cigarette/cigar/havana)



/datum/unit_test/outfit_sanity/Run()
var/datum/outfit/prototype_outfit = /datum/outfit
var/prototype_name = initial(prototype_outfit.name)
var/mob/living/carbon/human/H = allocate(/mob/living/carbon/human/consistent)

for (var/outfit_type in subtypesof(/datum/outfit))
var/list/outfits_to_check = subtypesof(/datum/outfit)
outfits_to_check -= typesof(/datum/outfit/deathmatch_loadout)

for (var/outfit_type in outfits_to_check)
// Only make one human and keep undressing it because it's much faster
for (var/obj/item/I in H.get_equipped_items(include_pockets = TRUE))
qdel(I)
Expand Down

0 comments on commit bdd57ea

Please sign in to comment.