mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Allowed magnetic grippers to remove APC cells.
This commit is contained in:
@@ -104,6 +104,23 @@
|
|||||||
else
|
else
|
||||||
user << "\red Your gripper cannot hold \the [target]."
|
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.
|
//TODO: Matter decompiler.
|
||||||
/obj/item/weapon/matter_decompiler
|
/obj/item/weapon/matter_decompiler
|
||||||
|
|
||||||
|
|||||||
@@ -596,7 +596,7 @@
|
|||||||
opened = 1
|
opened = 1
|
||||||
update_icon()
|
update_icon()
|
||||||
else
|
else
|
||||||
if ( ((stat & BROKEN) || malfhack) \
|
if (((stat & BROKEN) || malfhack) \
|
||||||
&& !opened \
|
&& !opened \
|
||||||
&& W.force >= 5 \
|
&& W.force >= 5 \
|
||||||
&& W.w_class >= 3.0 \
|
&& W.w_class >= 3.0 \
|
||||||
|
|||||||
Reference in New Issue
Block a user