First test of a fix for the infinite tables bug

This commit is contained in:
Crazylemon
2015-12-21 22:14:56 -08:00
parent b7d41226ee
commit 132f149857
2 changed files with 10 additions and 2 deletions
@@ -48,7 +48,7 @@
if(wrapped)
wrapped.attack_self(user)
/obj/item/weapon/gripper/verb/drop_item()
/obj/item/weapon/gripper/verb/drop_item(var/silent = 0)
set name = "Drop Item"
set desc = "Release an item from your magnetic gripper."
@@ -64,7 +64,8 @@
wrapped = null
return
src.loc << "\red You drop \the [wrapped]."
if(!silent)
src.loc << "\red You drop \the [wrapped]."
wrapped.loc = get_turf(src)
wrapped = null
//update_icon()
@@ -109,6 +109,13 @@
else
return 0
/mob/living/silicon/robot/drop_item()
var/obj/item/I = get_active_hand()
if(istype(I, /obj/item/weapon/gripper))
var/obj/item/weapon/gripper/G = I
G.drop_item(silent = 1)
return
//Helper procs for cyborg modules on the UI.
//These are hackish but they help clean up code elsewhere.