New Crate Visuals (#74636)

## About The Pull Request

Adds several new crate visuals. Adds a new lid overlay for several
crates. Re-names and re-designs bubblegum chest.

![image](https://user-images.githubusercontent.com/28636915/231009153-3abdc29b-1f47-4b7a-8725-97082b92b510.png)

![image](https://user-images.githubusercontent.com/28636915/231009170-40240220-45ed-4f9d-92b7-7925231a298b.png)

## Why It's Good For The Game

New crate visuals and lids not magically disappearing is cool.

## Changelog
🆑
add: New Lids for several crates.
imageadd: Several new Crate Visuals.
/🆑

---------

Co-authored-by: Jacquerel <hnevard@gmail.com>
This commit is contained in:
Mey-Ha-Zah
2023-04-12 19:06:47 -04:00
committed by GitHub
parent 560dc3b5e0
commit 0800509b2b
4 changed files with 28 additions and 1 deletions

View File

@@ -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()
. = ..()

View File

@@ -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."

View File

@@ -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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 30 KiB