Fixes #8696, and updates other usages of drop_item() where appropriate.
This commit is contained in:
mwerezak
2015-03-31 19:40:04 -04:00
parent 398459c2e7
commit 01ce8d4a1f
11 changed files with 11 additions and 13 deletions

View File

@@ -21,8 +21,7 @@
if (can_hang && !coat)
user.visible_message("[user] hangs [W] on \the [src].", "You hang [W] on the \the [src]")
coat = W
user.drop_item(src)
coat.loc = src
user.drop_from_inventory(coat, src)
update_icon()
else
user << "<span class='notice'>You cannot hang [W] on [src]</span>"

View File

@@ -61,7 +61,7 @@
user << "\red Unwield the axe first."
return
fireaxe = O
user.drop_item(O)
user.remove_from_mob(O)
src.contents += O
user << "\blue You place the fire axe back in the [src.name]."
update_icon()

View File

@@ -431,7 +431,7 @@
user.visible_message("<span class='danger'>The [src] was sliced apart by [user]!</span>")
destroy()
user.drop_item(src)
user.drop_item(src.loc)
return
/obj/structure/table/proc/straight_table_check(var/direction)