Merge pull request #14761 from TDSSS/dna-vault-offsprite

Gives DNA vault an off sprite
This commit is contained in:
AffectedArc07
2020-10-29 14:05:23 +00:00
committed by GitHub
2 changed files with 15 additions and 0 deletions
+15
View File
@@ -190,6 +190,21 @@ GLOBAL_LIST_INIT(non_simple_animals, typecacheof(list(/mob/living/carbon/human/m
..()
/obj/machinery/dna_vault/update_icon()
..()
if(stat & NOPOWER)
icon_state = "vaultoff"
return
icon_state = "vault"
/obj/machinery/dna_vault/power_change()
if(powered(power_channel))
stat &= ~NOPOWER
else
stat |= NOPOWER
update_icon()
/obj/machinery/dna_vault/Destroy()
QDEL_LIST(fillers)
return ..()