Files
Paradise/code/tests/test_status_effect_ids.dm
warriorstar-orion bb60a027bf unit->game tests, /tg/ assertions and allocations (#27646)
* unit->game tests, /tg/ assertions and allocations

* whoopsies

* fix lint
2024-12-21 21:19:33 +00:00

9 lines
328 B
Plaintext

/datum/game_test/status_effect_ids/Run()
var/list/bad_statuses = list()
for(var/datum/status_effect/effect as anything in subtypesof(/datum/status_effect))
if(initial(effect.id) == null)
bad_statuses += effect
if(length(bad_statuses))
TEST_FAIL("Status effects found without an unique ID: [bad_statuses.Join(", ")]")