This commit is contained in:
Ghommie
2020-03-08 19:26:01 +01:00
parent d78926b269
commit ad4d290ea7
89 changed files with 443 additions and 498 deletions
+11 -11
View File
@@ -140,30 +140,30 @@
update_icon()
return
/obj/structure/fireaxecabinet/update_icon()
cut_overlays()
/obj/structure/fireaxecabinet/update_overlays()
. = ..()
if(fireaxe)
add_overlay("axe")
. += "axe"
if(!open)
var/hp_percent = obj_integrity/max_integrity * 100
if(broken)
add_overlay("glass4")
. += "glass4"
else
switch(hp_percent)
if(-INFINITY to 40)
add_overlay("glass3")
. += "glass3"
if(40 to 60)
add_overlay("glass2")
. += "glass2"
if(60 to 80)
add_overlay("glass1")
. += "glass1"
if(80 to INFINITY)
add_overlay("glass")
. += "glass"
if(locked)
add_overlay("locked")
. += "locked"
else
add_overlay("unlocked")
. += "unlocked"
else
add_overlay("glass_raised")
. += "glass_raised"
/obj/structure/fireaxecabinet/proc/toggle_lock(mob/user)
to_chat(user, "<span class = 'caution'> Resetting circuitry...</span>")