Replaces uses of u_equip() with remove_from_mob() or drop_from_inventory(), where appropriate.

This commit is contained in:
mwerezak
2015-03-30 22:05:00 -04:00
parent 1b4e13aabc
commit cdfce64ad0
24 changed files with 45 additions and 113 deletions

View File

@@ -165,9 +165,7 @@
return
user << "\red You slip [W] inside [src]."
user.u_equip(W)
if ((user.client && user.s_active != src))
user.client.screen -= W
user.remove_from_mob(W)
W.dropped(user)
add_fingerprint(user)
contents += W

View File

@@ -250,7 +250,7 @@
if (target != user && target.getarmor(target_zone, "melee") > 5 && prob(50))
for(var/mob/O in viewers(world.view, user))
O.show_message(text("\red <B>[user] tries to stab [target] in \the [hit_area] with [src.name], but the attack is deflected by armor!</B>"), 1)
user.u_equip(src)
user.remove_from_mob(src)
del(src)
return