Removes /proc/type2parent, replaces it with ::parent_type (#96155)

This commit is contained in:
tonty
2026-05-20 17:49:32 +02:00
committed by GitHub
parent 38dbdb8469
commit 960d0a7278
6 changed files with 11 additions and 26 deletions
+2 -2
View File
@@ -237,11 +237,11 @@
/datum/component/proc/_GetInverseTypeList(our_type = type)
//we can do this one simple trick
. = list(our_type)
var/current_type = parent_type
var/datum/current_type = parent_type
//and since most components are root level + 1, this won't even have to run
while (current_type != /datum/component)
. += current_type
current_type = type2parent(current_type)
current_type = current_type::parent_type
// The type arg is casted so initial works, you shouldn't be passing a real instance into this
/**