mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user