Files
Bubberstation/code/modules/unit_tests/bespoke_id.dm
SkyratBot b4fd13b16b [MIRROR] Improve the naming of the element argument hash index selector [MDB IGNORE] (#17588)
* Improve the naming of the element argument hash index selector (#71319)

So confusing name

* Improve the naming of the element argument hash index selector

* sr sync

Co-authored-by: oranges <email@oranges.net.nz>
Co-authored-by: tastyfish <crazychris32@gmail.com>
2022-11-21 16:27:40 -05:00

9 lines
427 B
Plaintext

/datum/unit_test/bespoke_id/Run()
var/datum/element/base = /datum/element
var/base_index = initial(base.argument_hash_start_idx)
for(var/i in subtypesof(/datum/element))
var/datum/element/faketype = i
if((initial(faketype.element_flags) & ELEMENT_BESPOKE) && initial(faketype.argument_hash_start_idx) == base_index)
TEST_FAIL("A bespoke element was not configured with a proper argument_hash_start_idx: [faketype]")