vgstation-coders / vgstation13

Butts
GNU General Public License v3.0
260 stars 541 forks source link

trying to wrench down an unanchored custom vending machine and having the wrench action interrupted results in the wrench going into the custom vending machine yum yum delicious tools #19578

Open D3athrow-Issues opened 5 years ago

D3athrow-Issues commented 5 years ago

(WEB REPORT BY: whoru REMOTE: 172.93.109.202:7777)

Revision

9de74a66415e27e070b441c9e426193481df7b87

Description

Steps to Reproduce

What you Expected

What Actually Happened

BarneyGumball commented 5 years ago

Too tired to fix this right now, but it's caused because the following code still runs if the wrenching fails:

https://github.com/vgstation-coders/vgstation13/blob/270610bb96ab8001975157d09ff4d50b19a42d7b/code/game/machinery/vending.dm#L513-L519

Funny enough, interrupting the wrench do_after() is the only way to get a wrench into the machine at all.

DamianX commented 5 years ago

I'm pretty sure this is also the only way to deconstruct a wrench in the autolathe.