Skip to content

Commit

Permalink
gun sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Oct 10, 2024
1 parent cc5ded6 commit c545f25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/unit_tests/_unit_tests.dm
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
#include "connect_loc.dm"
#include "biome_lists.dm"
#include "emoting.dm"
#include "gun_sanity.dm"
#include "keybinding_init.dm"
#include "machine_disassembly.dm"
#include "open_air.dm"
Expand Down
1 change: 1 addition & 0 deletions code/modules/unit_tests/gun_sanity.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
if(target_gun.default_ammo_type)
TEST_ASSERT(istype(target_gun.default_ammo_type), "The default ammo in [target_gun.type] is not a type")
TEST_ASSERT(target_gun.default_ammo_type in target_gun.allowed_ammo_types, "The default ammo in [target_gun.type] in not in its allowed ammo types")
TEST_ASSERT_EQUAL(target_gun.magazine?.type, target_gun.default_ammo_type, "[target_gun.type]'s mag does not equal its default_ammo_type")
qdel(target_gun)

0 comments on commit c545f25

Please sign in to comment.