mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 22:54:46 +00:00
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.   ## 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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user