mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-17 05:32:27 +00:00
TG: - Wallets once again spawn in the satchels in the cabinets in the dorm.
- Wallets now fit in pockets - If you are clicking on a storage item in your pocket with an empty hand it will return that item to your hand Revision: r3610 Author: baloh.matevz
This commit is contained in:
@@ -129,8 +129,10 @@
|
|||||||
desc = "It's a very robust satchel to wear on your back."
|
desc = "It's a very robust satchel to wear on your back."
|
||||||
icon_state = "satchel"
|
icon_state = "satchel"
|
||||||
|
|
||||||
|
/obj/item/weapon/storage/backpack/satchel/withwallet
|
||||||
New()
|
New()
|
||||||
..()
|
..()
|
||||||
|
new /obj/item/weapon/storage/wallet/random( src )
|
||||||
|
|
||||||
/obj/item/weapon/storage/backpack/bandolier
|
/obj/item/weapon/storage/backpack/bandolier
|
||||||
name = "bandolier"
|
name = "bandolier"
|
||||||
@@ -211,6 +213,7 @@
|
|||||||
desc = "It can hold a few small and personal things."
|
desc = "It can hold a few small and personal things."
|
||||||
storage_slots = 4
|
storage_slots = 4
|
||||||
icon_state = "wallet"
|
icon_state = "wallet"
|
||||||
|
w_class = 2
|
||||||
can_hold = list(
|
can_hold = list(
|
||||||
"/obj/item/weapon/spacecash",
|
"/obj/item/weapon/spacecash",
|
||||||
"/obj/item/weapon/card",
|
"/obj/item/weapon/card",
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
..()
|
..()
|
||||||
spawn(4)
|
spawn(4)
|
||||||
contents = list()
|
contents = list()
|
||||||
new /obj/item/weapon/storage/backpack/satchel( src )
|
new /obj/item/weapon/storage/backpack/satchel/withwallet( src )
|
||||||
new /obj/item/device/radio/headset( src )
|
new /obj/item/device/radio/headset( src )
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -207,6 +207,19 @@
|
|||||||
|
|
||||||
/obj/item/weapon/storage/attack_hand(mob/user as mob)
|
/obj/item/weapon/storage/attack_hand(mob/user as mob)
|
||||||
playsound(src.loc, "rustle", 50, 1, -5)
|
playsound(src.loc, "rustle", 50, 1, -5)
|
||||||
|
|
||||||
|
if(ishuman(user))
|
||||||
|
var/mob/living/carbon/human/H = user
|
||||||
|
if(H.l_store == src && !H.get_active_hand())
|
||||||
|
H.put_in_hand(src)
|
||||||
|
H.l_store = null
|
||||||
|
return
|
||||||
|
if(H.r_store == src && !H.get_active_hand())
|
||||||
|
H.put_in_hand(src)
|
||||||
|
H.r_store = null
|
||||||
|
return
|
||||||
|
|
||||||
|
src.orient2hud(user)
|
||||||
if (src.loc == user)
|
if (src.loc == user)
|
||||||
if (user.s_active)
|
if (user.s_active)
|
||||||
user.s_active.close(user)
|
user.s_active.close(user)
|
||||||
@@ -216,7 +229,6 @@
|
|||||||
for(var/mob/M in range(1))
|
for(var/mob/M in range(1))
|
||||||
if (M.s_active == src)
|
if (M.s_active == src)
|
||||||
src.close(M)
|
src.close(M)
|
||||||
src.orient2hud(user)
|
|
||||||
src.add_fingerprint(user)
|
src.add_fingerprint(user)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user