Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] exclude deathmatch loadouts from outfit_sanity #2526

Merged
merged 1 commit into from
Mar 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading