WIP
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user