mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Card Deck Fix
This commit is contained in:
+11
-15
@@ -220,24 +220,20 @@
|
||||
if(M.incapacitated() || !Adjacent(M))
|
||||
return
|
||||
|
||||
if(over_object == M)
|
||||
if(over_object == M || istype(over_object, /obj/screen))
|
||||
if(!remove_item_from_storage(M))
|
||||
M.unEquip(src)
|
||||
M.put_in_hands(src)
|
||||
if(over_object != M)
|
||||
switch(over_object.name)
|
||||
if("r_hand")
|
||||
M.put_in_r_hand(src)
|
||||
if("l_hand")
|
||||
M.put_in_l_hand(src)
|
||||
else
|
||||
M.put_in_hands(src)
|
||||
|
||||
else if(istype(over_object, /obj/screen))
|
||||
switch(over_object.name)
|
||||
if("r_hand")
|
||||
if(!remove_item_from_storage(M))
|
||||
M.unEquip(src)
|
||||
M.put_in_r_hand(src)
|
||||
if("l_hand")
|
||||
if(!remove_item_from_storage(M))
|
||||
M.unEquip(src)
|
||||
M.put_in_l_hand(src)
|
||||
|
||||
add_fingerprint(M)
|
||||
usr.visible_message("<span class='notice'>[usr] picks up the deck.</span>")
|
||||
add_fingerprint(M)
|
||||
usr.visible_message("<span class='notice'>[usr] picks up the deck.</span>")
|
||||
|
||||
/obj/item/pack
|
||||
name = "Card Pack"
|
||||
|
||||
Reference in New Issue
Block a user