-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loadout items now spawn in lockers in dorms + persistent GM medals !!…
…!NEED TESTING!!! (#123)
- Loading branch information
1 parent
1c939c8
commit 40ae227
Showing
9 changed files
with
476 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
code/game/objects/structures/crates_lockers/closets/secure/marine_personal.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/obj/structure/closet/secure_closet/marine_personal | ||
name = "personal locker" | ||
desc = "It's an immobile card-locked storage unit." | ||
icon_state = "secure1" | ||
can_be_stacked = TRUE | ||
var/owner | ||
var/job = "Rifleman" | ||
var/has_cryo_gear = TRUE | ||
|
||
/obj/structure/closet/secure_closet/marine_personal/get_examine_text(mob/user) | ||
. = ..() | ||
. += SPAN_NOTICE("It has a name tag[owner ? ": [owner]." : ". They are still in hypersleep..."]") | ||
|
||
/obj/structure/closet/secure_closet/marine_personal/Initialize(mapload, ...) | ||
. = ..() | ||
GLOB.personal_closets += src | ||
|
||
/obj/structure/closet/secure_closet/marine_personal/Destroy() | ||
GLOB.personal_closets -= src | ||
return ..() | ||
|
||
/obj/structure/closet/secure_closet/marine_personal/allowed(mob/M) | ||
if(owner == M.name) | ||
return TRUE | ||
return FALSE | ||
|
||
/obj/structure/closet/secure_closet/marine_personal/Initialize() | ||
. = ..() | ||
if(has_cryo_gear) | ||
new /obj/item/clothing/under/marine(src) | ||
new /obj/item/clothing/shoes/marine/knife(src) | ||
new /obj/item/device/radio/headset/almayer/marine(src) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.