mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 22:43:46 +00:00
* 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>
9 lines
427 B
Plaintext
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]")
|