mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Hat storage added! Currently only used for detective's candy corn.
Stripping now works for taking off suit storage as well as emptying hat storage. Prison Management Computer now only requires armory access, not armory and captain access. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@609 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -77,6 +77,7 @@ proc/countJob(rank)
|
||||
slot_r_store = 16
|
||||
slot_s_store = 17
|
||||
slot_in_backpack = 18
|
||||
slot_h_store = 19
|
||||
|
||||
/mob/living/carbon/human/proc/equip_if_possible(obj/item/weapon/W, slot) // since byond doesn't seem to have pointers, this seems like the best way to do this :/
|
||||
//warning: icky code
|
||||
@@ -87,6 +88,9 @@ proc/countJob(rank)
|
||||
if(slot == s_store && !src.wear_suit)
|
||||
del(W)
|
||||
return
|
||||
if(slot == h_store && !src.head)
|
||||
del(W)
|
||||
return
|
||||
switch(slot)
|
||||
if(slot_back)
|
||||
if(!src.back)
|
||||
@@ -162,6 +166,10 @@ proc/countJob(rank)
|
||||
if(B.contents.len < 7 && W.w_class <= 3)
|
||||
W.loc = B
|
||||
equipped = 1
|
||||
if(slot_h_store)
|
||||
if(!src.h_store)
|
||||
src.h_store = W
|
||||
equipped = 1
|
||||
|
||||
if(equipped)
|
||||
W.layer = 20
|
||||
|
||||
Reference in New Issue
Block a user