mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
ID-lock Theta equipment in indestructible crates. (#25660)
* ID-lock Theta equipment in indestructible crates. * Update code/modules/awaymissions/mission_code/ruins/oldstation.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> * Update code/modules/power/cables/cable_coil.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> --------- Signed-off-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c4cd57d7c8
commit
4697b01241
@@ -159,6 +159,9 @@ GLOBAL_LIST_INIT(metal_recipes, list(
|
||||
/obj/item/stack/sheet/metal/cyborg/drone
|
||||
energy_type = /datum/robot_storage/energy/metal
|
||||
|
||||
/obj/item/stack/sheet/metal/ten
|
||||
amount = 10
|
||||
|
||||
/obj/item/stack/sheet/metal/fifty
|
||||
amount = 50
|
||||
|
||||
|
||||
@@ -216,16 +216,18 @@
|
||||
/obj/structure/closet/crate/secure/proc/togglelock(mob/user)
|
||||
if(opened)
|
||||
to_chat(user, "<span class='notice'>Close the crate first.</span>")
|
||||
return
|
||||
return FALSE
|
||||
if(broken)
|
||||
to_chat(user, "<span class='warning'>The crate appears to be broken.</span>")
|
||||
return
|
||||
return FALSE
|
||||
if(allowed(user))
|
||||
locked = !locked
|
||||
visible_message("<span class='notice'>The crate has been [locked ? null : "un"]locked by [user].</span>")
|
||||
update_icon()
|
||||
return TRUE
|
||||
else
|
||||
to_chat(user, "<span class='notice'>Access Denied.</span>")
|
||||
return FALSE
|
||||
|
||||
/obj/structure/closet/crate/secure/AltClick(mob/user)
|
||||
if(Adjacent(user) && !opened)
|
||||
|
||||
Reference in New Issue
Block a user