Skip to content

Commit

Permalink
first try?
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Dec 18, 2023
1 parent 3b0e3f4 commit 467e1c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/modules/unit_tests/outfit_sanity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

/datum/unit_test/outfit_sanity/Run()
var/mob/living/carbon/human/H = allocate(/mob/living/carbon/human)
var/list created_items = list()

for (var/outfit_type in subtypesof(/datum/outfit))
// Only make one human and keep undressing it because it's much faster
Expand Down Expand Up @@ -58,5 +59,12 @@
for (var/_ in 1 to number)
if (!H.equip_to_slot_or_del(new path(H), ITEM_SLOT_BACKPACK, TRUE))
TEST_FAIL("[outfit.name]'s backpack_contents are invalid! Couldn't add [path] to backpack.")
// Check if the created outfit is of subtype /datum/outfit/generic
if (isoutfit(outfit, /datum/outfit/generic))
for (var/obj/item/I in H.get_equipped_items(include_pockets = TRUE))
list/append(created_items, I.path)
for (var/item in created_items)
world.log << "Created Item: [item.name] ([item.path])"


#undef CHECK_OUTFIT_SLOT

0 comments on commit 467e1c3

Please sign in to comment.