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
+5 -5
View File
@@ -22,17 +22,17 @@
break
update_icon()
/obj/structure/guncase/update_icon()
cut_overlays()
/obj/structure/guncase/update_overlays()
. = ..()
if(case_type && LAZYLEN(contents))
var/mutable_appearance/gun_overlay = mutable_appearance(icon, case_type)
for(var/i in 1 to contents.len)
gun_overlay.pixel_x = 3 * (i - 1)
add_overlay(gun_overlay)
. += gun_overlay
if(open)
add_overlay("[icon_state]_open")
. += "[icon_state]_open"
else
add_overlay("[icon_state]_door")
. += "[icon_state]_door"
/obj/structure/guncase/attackby(obj/item/I, mob/user, params)
if(iscyborg(user) || isalien(user))