diff --git a/code/game/objects/items/mail.dm b/code/game/objects/items/mail.dm index a8da5f7b968..8d4ef47c0ec 100644 --- a/code/game/objects/items/mail.dm +++ b/code/game/objects/items/mail.dm @@ -216,6 +216,9 @@ desc = "A certified post crate from CentCom." icon_state = "mail" can_install_electronics = FALSE + lid_icon_state = "maillid" + lid_x = -26 + lid_y = 2 /obj/structure/closet/crate/mail/update_icon_state() . = ..() diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm index ced0306e3e8..c46c9d06fbe 100644 --- a/code/game/objects/structures/crates_lockers/crates.dm +++ b/code/game/objects/structures/crates_lockers/crates.dm @@ -19,6 +19,14 @@ pass_flags_self = PASSSTRUCTURE | LETPASSTHROW var/crate_climb_time = 20 var/obj/item/paper/fluff/jobs/cargo/manifest/manifest + /// Where the Icons for lids are located. + var/lid_icon = 'icons/obj/storage/crates.dmi' + /// Icon state to use for lid to display when opened. Leave undefined if there isn't one. + var/lid_icon_state + /// Controls the X value of the lid, allowing left and right pixel movement. + var/lid_x = 0 + /// Controls the Y value of the lid, allowing up and down pixel movement. + var/lid_y = 0 /obj/structure/closet/crate/Initialize(mapload) . = ..() @@ -95,6 +103,16 @@ manifest = null update_appearance() +/obj/structure/closet/crate/closet_update_overlays(list/new_overlays) + . = new_overlays + if(opened && lid_icon_state) + var/mutable_appearance/lid = mutable_appearance(icon = lid_icon, icon_state = lid_icon_state) + lid.pixel_x = lid_x + lid.pixel_y = lid_y + lid.layer = layer + . += lid + . += ..() + /obj/structure/closet/crate/coffin name = "coffin" desc = "It's a burial receptacle for the dearly departed." diff --git a/code/modules/mining/lavaland/necropolis_chests.dm b/code/modules/mining/lavaland/necropolis_chests.dm index 0a5a2c21e67..de4a7e924f6 100644 --- a/code/modules/mining/lavaland/necropolis_chests.dm +++ b/code/modules/mining/lavaland/necropolis_chests.dm @@ -106,7 +106,13 @@ new /obj/item/crusher_trophy/tail_spike(src) /obj/structure/closet/crate/necropolis/bubblegum - name = "bubblegum chest" + name = "\improper Ancient Sarcophagus" + desc = "Once guarded by the King of Demons, this sarcophagus contains the relics of an ancient soldier." + icon_state = "necro_bubblegum" + lid_icon_state = "necro_bubblegum_lid" + lid_x = -26 + lid_y = 2 + /obj/structure/closet/crate/necropolis/bubblegum/PopulateContents() new /obj/item/clothing/suit/hooded/hostile_environment(src) diff --git a/icons/obj/storage/crates.dmi b/icons/obj/storage/crates.dmi index 1ce37de5c5d..7ba43e6a61d 100644 Binary files a/icons/obj/storage/crates.dmi and b/icons/obj/storage/crates.dmi differ