Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Vending wirecutters #87

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
4 changes: 3 additions & 1 deletion code/modules/vending/vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,8 @@
else
boutput(user, "<span style=\"color:blue\">[bicon(W)] Regular electrical response received from access panel.</span>")
return
else if (issnippingtool(W) && src.panel_open)
return src.attack_hand(user)
else if (ispulsingtool(W))
return src.attack_hand(user)

Expand Down Expand Up @@ -1889,4 +1891,4 @@
#undef WIRE_EXTEND
#undef WIRE_SCANID
#undef WIRE_SHOCK
#undef WIRE_SHOOTINV
#undef WIRE_SHOOTINV
4 changes: 4 additions & 0 deletions code/obj/submachine/seed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,10 @@
src.panelopen = 0
boutput(user, "You [src.panelopen ? "open" : "close"] the maintenance panel.")
src.updateUsrDialog()
else if (issnippingtool(W) && src.panelopen)
return src.attack_hand(user)
else if (ispulsingtool(W))
return src.attack_hand(user)
else ..()

proc/isWireColorCut(var/wireColor)
Expand Down