QOL for pickpocketing - Stripping items off of someone will now place them in your hands if possible (#7994)

This commit is contained in:
deathride58
2019-02-13 23:59:51 -05:00
committed by kevinz000
parent 98642bcf25
commit 2c705a7ba4
2 changed files with 6 additions and 0 deletions
@@ -264,6 +264,8 @@
if(pocket_item)
if(pocket_item == (pocket_id == SLOT_R_STORE ? r_store : l_store)) //item still in the pocket we search
dropItemToGround(pocket_item)
if(!put_in_hands(pocket_item))
pocket_item.forceMove(drop_location())
else
if(place_item)
if(place_item.mob_can_equip(src, usr, pocket_id, FALSE, TRUE))
+4
View File
@@ -700,9 +700,13 @@
var/list/L = where
if(what == who.get_item_for_held_index(L[2]))
if(who.dropItemToGround(what))
if(!put_in_hands(what))
what.forceMove(drop_location())
log_combat(src, who, "stripped [what] off")
if(what == who.get_item_by_slot(where))
if(who.dropItemToGround(what))
if(!put_in_hands(what))
what.forceMove(drop_location())
log_combat(src, who, "stripped [what] off")
// The src mob is trying to place an item on someone