Files
Paradise/code/modules/unit_tests/status_effect_ids.dm
DGamerL 2a58ce0f91 Gives all status effects an ID (#26880)
* Gives all status effects an ID

* Actually delete

* Update code/datums/status_effects/buffs.dm

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Update code/datums/status_effects/buffs.dm

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* We ball

* Fix CI and remove stack trace

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
2024-09-27 17:01:45 +00:00

9 lines
323 B
Plaintext

/datum/unit_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))
Fail("STatus effects found without an unique ID: [bad_statuses.Join(", ")]")