mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-21 07:03:05 +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:
@@ -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()
|
||||
. = ..()
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user