mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 09:03:23 +01:00
Fixes runtime with ridable element and adds unit test for bespoke elements (#26111)
* fixes bespoke elements with default indexes, adds unit test for detecting this * lewc review
This commit is contained in:
@@ -0,0 +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.")
|
||||
Reference in New Issue
Block a user