Skip to content

Commit

Permalink
Don't spawn artifacts during unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Jan 20, 2025
1 parent 7d69a0f commit 1ef8e3c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ ARTIFACT_SETUP(/obj/structure/artifact, SSobj, null, forced_effect, null)
icon_state = "wiznerd-1"

/obj/effect/artifact_spawner/Initialize(mapload)
. = ..()
..()
// don't want artifacts exploding during unit tests or something
#ifndef UNIT_TESTS
spawn_artifact(loc)
qdel(src)
#endif
return INITIALIZE_HINT_QDEL

/obj/structure/artifact/bonk
forced_effect = /datum/artifact_effect/bonk
Expand Down

0 comments on commit 1ef8e3c

Please sign in to comment.