mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +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:
@@ -727,7 +727,7 @@
|
||||
C.installed = 1
|
||||
C.wrapped = W
|
||||
C.install()
|
||||
user.drop_item()
|
||||
user.drop_item(W)
|
||||
W.loc = null
|
||||
|
||||
usr << "<span class='notice'>You install the [W.name].</span>"
|
||||
@@ -818,7 +818,7 @@
|
||||
else if(cell)
|
||||
user << "There is a power cell already installed."
|
||||
else
|
||||
user.drop_item(src)
|
||||
user.drop_item(W, src)
|
||||
cell = W
|
||||
user << "You insert the power cell."
|
||||
|
||||
@@ -866,17 +866,17 @@
|
||||
else if(istype(W, /obj/item/borg/upgrade/))
|
||||
var/obj/item/borg/upgrade/U = W
|
||||
if(!opened)
|
||||
usr << "You must access the borgs internals!"
|
||||
user << "You must access the borgs internals!"
|
||||
else if(!src.module && U.require_module)
|
||||
usr << "The borg must choose a module before he can be upgraded!"
|
||||
user << "The borg must choose a module before he can be upgraded!"
|
||||
else if(U.locked)
|
||||
usr << "The upgrade is locked and cannot be used yet!"
|
||||
user << "The upgrade is locked and cannot be used yet!"
|
||||
else
|
||||
if(U.action(src))
|
||||
usr << "You apply the upgrade to [src]!"
|
||||
usr.drop_item(src)
|
||||
user << "You apply the upgrade to [src]!"
|
||||
user.drop_item(U, src)
|
||||
else
|
||||
usr << "Upgrade error!"
|
||||
user << "Upgrade error!"
|
||||
|
||||
else if(istype(W, /obj/item/device/camera_bug))
|
||||
help_shake_act(user)
|
||||
|
||||
Reference in New Issue
Block a user