still not working
This commit is contained in:
@@ -707,10 +707,15 @@ SUBSYSTEM_DEF(job)
|
||||
qdel(I)
|
||||
if(I) //handle loadout colors last
|
||||
if((G.loadout_flags & LOADOUT_CAN_COLOR_POLYCHROMIC) && length(G.loadout_initial_colors))
|
||||
var/datum/element/polychromic/polychromic = SSdcs.GetElement(list(/datum/element/polychromic))
|
||||
var/datum/element/polychromic/polychromic
|
||||
for(var/some_connection in I.comp_lookup["parent_qdeleting"]) //stupid way to do it but GetElement does not work for this case, sigh
|
||||
if(ispath(some_connection, /datum/element/polychromic))
|
||||
polychromic = some_connection
|
||||
break
|
||||
if(polychromic)
|
||||
var/list/polychromic_entry = polychromic.colors_by_atom[I]
|
||||
if(polychromic_entry)
|
||||
message_admins("we found the corresponding atom")
|
||||
polychromic.colors_by_atom[I] = I[LOADOUT_COLOR]
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
var/col = LAZYACCESS(colors, I) || "#FFFFFF"
|
||||
L += make_appearances ? mutable_appearance(mut_icon, overlays_states[I], color = col) : col
|
||||
colors_by_atom[A] = L
|
||||
message_admins("attached")
|
||||
|
||||
RegisterSignal(A, COMSIG_ATOM_UPDATE_OVERLAYS, .proc/apply_overlays)
|
||||
|
||||
@@ -170,7 +171,7 @@
|
||||
if(istype(source,/obj/item/clothing/suit/hooded)) //so how come it be like this, where toggleable headslots are named separately (helmet/hood) anyways?
|
||||
var/obj/item/clothing/suit/hooded/sourcesuit = source
|
||||
H = sourcesuit.hood
|
||||
else if(istype(source,/obj/item/clothing/suit/space/hardsuit))
|
||||
else if(istype(source,/obj/item/clothing/suit/space/hardsuit))
|
||||
var/obj/item/clothing/suit/space/hardsuit/sourcesuit = source
|
||||
H = sourcesuit.helmet
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user