WIP
This commit is contained in:
@@ -14,15 +14,15 @@
|
||||
..()
|
||||
update_icon()
|
||||
|
||||
/obj/structure/closet/crate/bin/update_icon()
|
||||
..()
|
||||
/obj/structure/closet/crate/bin/closet_update_overlays(list/new_overlays)
|
||||
. = new_overlays
|
||||
cut_overlays()
|
||||
if(contents.len == 0)
|
||||
add_overlay("largebing")
|
||||
. += "largebing"
|
||||
else if(contents.len >= storage_capacity)
|
||||
add_overlay("largebinr")
|
||||
. += "largebinr"
|
||||
else
|
||||
add_overlay("largebino")
|
||||
. += "largebino"
|
||||
|
||||
/obj/structure/closet/crate/bin/attackby(obj/item/W, mob/user, params)
|
||||
if(istype(W, /obj/item/storage/bag/trash))
|
||||
|
||||
@@ -22,14 +22,14 @@
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/structure/closet/crate/critter/update_icon()
|
||||
cut_overlays()
|
||||
/obj/structure/closet/crate/critter/closet_update_overlays(list/new_overlays)
|
||||
. = new_overlays
|
||||
if(opened)
|
||||
add_overlay("crittercrate_door_open")
|
||||
. += "crittercrate_door_open"
|
||||
else
|
||||
add_overlay("crittercrate_door")
|
||||
. += "crittercrate_door"
|
||||
if(manifest)
|
||||
add_overlay("manifest")
|
||||
. += "manifest"
|
||||
|
||||
/obj/structure/closet/crate/critter/return_air()
|
||||
if(tank)
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
return 0
|
||||
. = ..()
|
||||
|
||||
/obj/structure/closet/crate/secure/update_icon()
|
||||
..()
|
||||
/obj/structure/closet/crate/secure/update_overlays()
|
||||
. += ..()
|
||||
if(broken)
|
||||
add_overlay("securecrateemag")
|
||||
. += "securecrateemag"
|
||||
else if(locked)
|
||||
add_overlay("securecrater")
|
||||
. += "securecrater"
|
||||
else
|
||||
add_overlay("securecrateg")
|
||||
. += "securecrateg"
|
||||
|
||||
/obj/structure/closet/crate/secure/take_damage(damage_amount, damage_type = BRUTE, damage_flag = 0, sound_effect = 1)
|
||||
if(prob(tamperproof) && damage_amount >= DAMAGE_PRECISION)
|
||||
|
||||
Reference in New Issue
Block a user