Skip to content

Commit

Permalink
see how this goes
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Feb 5, 2024
1 parent e814742 commit 422ddb1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions code/modules/unit_tests/gun_crafting.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
//Makes sure preinstalled frame parts can be removed an reinstalled
/datum/unit_test/gun_crafting/Run()
var/list/guns = typesof(/obj/item/gun)
for(var/gunType in guns)
var/obj/item/gun/G = new gunType // Create an instance of the gun
if(G.magazine) // If the gun has a magazine
TEST_FAIL("Gun: [G.type], Magazine: [G.magazine.type], Caliber: [G.magazine.caliber]")
/*
var/mob/living/carbon/human/human = allocate(/mob/living/carbon/human)
for(var/frame_type in subtypesof(/obj/item/part/gun/frame))
var/obj/item/part/gun/frame/frame = new frame_type
Expand All @@ -8,5 +14,4 @@
frame.eject_item(installedPart, human)
frame.handle_part(installedPart, human)
TEST_ASSERT_EQUAL(frame_parts, frame.installed_parts, "Frame parts to match there original contents. I assume frame parts were not reinstalled correctly.")


*/

0 comments on commit 422ddb1

Please sign in to comment.