Technomancer Chameleon Core (#13252)

This commit is contained in:
Geeves
2022-03-13 21:33:39 +01:00
committed by GitHub
parent f465e2a513
commit c87b908bc3
3 changed files with 45 additions and 3 deletions
+2 -2
View File
@@ -31,11 +31,11 @@
return copy //for inheritance
/proc/generate_chameleon_choices(var/basetype, var/blacklist=list())
/proc/generate_chameleon_choices(var/basetype, var/blacklist=list(), var/list/whitelist=list())
. = list()
var/i = 1 //in case there is a collision with both name AND icon_state
for(var/typepath in typesof(basetype) - blacklist)
for(var/typepath in (whitelist + typesof(basetype) - blacklist))
var/obj/O = typepath
if(initial(O.icon) && initial(O.icon_state))
var/name = initial(O.name)