drop_item and click code.

drop_item now has a first arg, which is the item to drop.
Hand processing now uses drop_item properly, which fixes #3874, #3796.
Also fixes #3486.
This commit is contained in:
ComicIronic
2015-04-12 00:56:43 +01:00
parent 1e25ea379f
commit d0e9eedd25
195 changed files with 372 additions and 468 deletions

View File

@@ -121,7 +121,7 @@
if(battery)
user << "<span class='notice'>The pod already has a battery.</span>"
return
user.drop_item(src)
user.drop_item(W, src)
battery = W
return
if(istype(W, /obj/item/device/spacepod_equipment))
@@ -136,7 +136,7 @@
return
else
user << "<span class='notice'>You insert \the [W] into the equipment system.</span>"
user.drop_item(equipment_system)
user.drop_item(W, equipment_system)
equipment_system.weapon_system = W
equipment_system.weapon_system.my_atom = src
new/obj/item/device/spacepod_equipment/weaponry/proc/fire_weapon_system(src, equipment_system.weapon_system.verb_name, equipment_system.weapon_system.verb_desc) //Yes, it has to be referenced like that. W.verb_name/desc doesn't compile.