mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
All Secondary Goals use labels (#29776)
* All Secondary Goals use labels * Fixes. * Fixes. * Update code/__DEFINES/dcs/basetype_signals.dm Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> --------- Signed-off-by: Charlie Nolan <funnyman3595@gmail.com> Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
@@ -281,13 +281,20 @@
|
||||
|
||||
/obj/structure/closet/crate/secure/personal
|
||||
name = "personal crate"
|
||||
desc = "The crate version of Nanotrasen's famous personal locker, ideal for shipping booze, food, or drugs to CC without letting Cargo consume it. This one has not been configured by CC, and the first card swiped gains control."
|
||||
desc = "The crate version of Nanotrasen's famous personal locker, ideal for shipping booze, food, or drugs to CC without letting Cargo consume it."
|
||||
req_access = list(ACCESS_ALL_PERSONAL_LOCKERS)
|
||||
/// The name of the person this crate is registered to.
|
||||
var/registered_name = null
|
||||
// Unlike most secure crates, personal crates are easily obtained.
|
||||
crate_value = DEFAULT_CRATE_VALUE
|
||||
|
||||
/obj/structure/closet/crate/secure/personal/examine(mob/user)
|
||||
. = ..()
|
||||
if(registered_name)
|
||||
. += "Owned by [registered_name]."
|
||||
else
|
||||
. += "This crate has no owner, and can be claimed by swiping your ID card."
|
||||
|
||||
/obj/structure/closet/crate/secure/personal/allowed(mob/user)
|
||||
if(..())
|
||||
return TRUE
|
||||
@@ -322,7 +329,6 @@
|
||||
|
||||
if(!registered_name)
|
||||
registered_name = id.registered_name
|
||||
desc = "Owned by [id.registered_name]."
|
||||
to_chat(user, "<span class='notice'>Crate reserved</span>")
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user