Fix invalid box overlays

This commit is contained in:
Elizabeth Lavenza
2024-04-16 02:25:18 -04:00
parent 3ff3b87df4
commit 928cd8fd40
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -625,6 +625,7 @@
desc = "Eight wrappers of fun! Ages 8 and up. Not suitable for children."
icon = 'icons/obj/toy.dmi'
icon_state = "spbox"
illustration = null
/obj/item/storage/box/snappops/ComponentInitialize()
. = ..()
@@ -1479,3 +1480,4 @@
/obj/item/stack/wrapping_paper/small=1
)
generate_items_inside(items_inside,src)
+4 -1
View File
@@ -172,6 +172,7 @@
spawn_type = /obj/item/clothing/mask/cigarette/space_cigarette
custom_price = PRICE_ALMOST_CHEAP
var/spawn_coupon = TRUE
var/has_open_overlay = TRUE
/obj/item/storage/fancy/cigarettes/attack_self(mob/user)
if(contents.len == 0 && spawn_coupon)
@@ -229,7 +230,8 @@
. = ..()
if(!fancy_open || !contents.len)
return
. += "[icon_state]_open"
if(has_open_overlay)
. += "[icon_state]_open"
var/cig_position = 1
for(var/C in contents)
var/mutable_appearance/inserted_overlay = mutable_appearance(icon)
@@ -438,6 +440,7 @@
icon_type = "premium cigar"
spawn_type = /obj/item/clothing/mask/cigarette/cigar
spawn_coupon = FALSE
has_open_overlay = FALSE
/obj/item/storage/fancy/cigarettes/cigars/ComponentInitialize()
. = ..()