simple quality of life tweak to the inflatable walls / doors.

Alt-click on an inflated one to deflate (same as the deflate option on right click)
This commit is contained in:
Jey
2016-01-15 13:19:18 -05:00
parent 12828298bc
commit 6002ec00e1
2 changed files with 42 additions and 0 deletions
@@ -111,6 +111,13 @@
if(health <= 0)
deflate(1)
/obj/structure/inflatable/AltClick()
if(usr.stat || usr.restrained())
return
if (cheap_hypotenuse(x, y, usr.x, usr.y) >= 2) //allow only 1 dist and diagonals
return
deflate()
/obj/structure/inflatable/proc/deflate(var/violent=0)
playsound(loc, 'sound/machines/hiss.ogg', 75, 1)
if(violent)