Allowed magnetic grippers to remove APC cells.

This commit is contained in:
Zuhayr
2014-05-12 14:51:55 +09:30
parent df7a589bd4
commit 590f980ea9
2 changed files with 18 additions and 1 deletions

View File

@@ -104,6 +104,23 @@
else
user << "\red Your gripper cannot hold \the [target]."
else if(istype(target,/obj/machinery/power/apc))
var/obj/machinery/power/apc/A = target
if(A.opened)
if(A.cell)
wrapped = A.cell
A.cell.add_fingerprint(user)
A.cell.updateicon()
A.cell.loc = src
A.cell = null
A.charging = 0
A.update_icon()
user.visible_message("\red [user] removes the power cell from [A]!", "You remove the power cell.")
//TODO: Matter decompiler.
/obj/item/weapon/matter_decompiler

View File

@@ -596,7 +596,7 @@
opened = 1
update_icon()
else
if ( ((stat & BROKEN) || malfhack) \
if (((stat & BROKEN) || malfhack) \
&& !opened \
&& W.force >= 5 \
&& W.w_class >= 3.0 \