mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
[MIRROR] Crate, Closet Refactors & Access Secured Stuff [MDB IGNORE] (#21024)
* Crate, Closet Refactors & Access Secured Stuff * CI * e --------- Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
co-authored by
SyncIt21
Gandalf
parent
666efed766
commit
fae04f1fb6
@@ -4,6 +4,7 @@
|
||||
name = "abandoned crate"
|
||||
desc = "What could be inside?"
|
||||
icon_state = "securecrate"
|
||||
base_icon_state = "securecrate"
|
||||
integrity_failure = 0 //no breaking open the crate
|
||||
var/code = null
|
||||
var/lastattempt = null
|
||||
@@ -124,7 +125,7 @@
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/structure/closet/crate/secure/loot/open(mob/living/user, force = FALSE)
|
||||
/obj/structure/closet/crate/secure/loot/after_open(mob/living/user, force)
|
||||
. = ..()
|
||||
if(qdel_on_open)
|
||||
qdel(src)
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
name = "necropolis chest"
|
||||
desc = "It's watching you closely."
|
||||
icon_state = "necrocrate"
|
||||
base_icon_state = "necrocrate"
|
||||
resistance_flags = LAVA_PROOF | FIRE_PROOF | ACID_PROOF
|
||||
can_install_electronics = FALSE
|
||||
paint_jobs = null
|
||||
|
||||
/obj/structure/closet/crate/necropolis/tendril
|
||||
desc = "It's watching you suspiciously. You need a skeleton key to open it."
|
||||
@@ -76,10 +78,16 @@
|
||||
qdel(item)
|
||||
to_chat(user, span_notice("You disable the magic lock, revealing the loot."))
|
||||
|
||||
/obj/structure/closet/crate/necropolis/tendril/can_open(mob/living/user, force = FALSE)
|
||||
if(!spawned_loot)
|
||||
/obj/structure/closet/crate/necropolis/tendril/before_open(mob/living/user, force)
|
||||
. = ..()
|
||||
if(!.)
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
if(!broken && !force && !spawned_loot)
|
||||
balloon_alert(user, "its locked!")
|
||||
return FALSE
|
||||
|
||||
return TRUE
|
||||
|
||||
//Megafauna chests
|
||||
|
||||
|
||||
@@ -129,3 +129,4 @@
|
||||
desc = "A mining car. This one doesn't work on rails, but has to be dragged."
|
||||
name = "Mining car (not for rails)"
|
||||
icon_state = "miningcar"
|
||||
base_icon_state = "miningcar"
|
||||
|
||||
Reference in New Issue
Block a user