Merge pull request #727 from Giacomand/pickpocket

Emptying someone's pockets won't display a message anymore. This allows ...
This commit is contained in:
Cael Aislinn
2013-06-08 17:49:31 -07:00
2 changed files with 17 additions and 3 deletions
@@ -481,11 +481,15 @@
//strip panel
if(!usr.stat && usr.canmove && !usr.restrained() && in_range(src, usr))
if(href_list["pockets"])
visible_message("<span class='danger'>[usr] tries to empty [src]'s pockets.</span>", \
"<span class='userdanger'>[usr] tries to empty [src]'s pockets.</span>")
//visible_message("<span class='danger'>[usr] tries to empty [src]'s pockets.</span>", \
"<span class='userdanger'>[usr] tries to empty [src]'s pockets.</span>") // Pickpocketing!
usr << "<span class='notice'>You try to empty [src]'s pockets.</span>"
if(do_mob(usr, src, STRIP_DELAY * 0.5))
u_equip(r_store)
u_equip(l_store)
else
// Display a warning if the user mocks up
src << "<span class='warning'>You feel your pockets being fumbled with!</span>"
if(href_list["criminal"])
if(istype(usr, /mob/living/carbon/human))