Fix: Bespoke DCS elements use all requested args. (#26387)

This commit is contained in:
warriorstar-orion
2024-08-06 15:29:39 -04:00
committed by GitHub
parent 52327cea40
commit 78ef86989f
8 changed files with 19 additions and 9 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
/datum/unit_test/bespoke_element/Run()
for(var/datum/element/element_type as anything in subtypesof(/datum/element))
if(initial(element_type.element_flags) & ELEMENT_BESPOKE && initial(element_type.id_arg_index) == INFINITY)
Fail("Element type [element_type] has ELEMENT_BESPOKE and a default id_arg_index.")
if(initial(element_type.element_flags) & ELEMENT_BESPOKE && initial(element_type.argument_hash_start_idx) == INFINITY)
Fail("Element type [element_type] has ELEMENT_BESPOKE and a default argument_hash_start_idx.")