Fixes monkey being able to ventcrawl if stunned after the ventcrawl action is initiated. Also changes ventcrawl messages to use visible_message() and audible_message().

This commit is contained in:
phil235
2014-12-14 19:18:13 +01:00
parent 0b26a71a71
commit f3df4e67bd
@@ -345,9 +345,10 @@
return
var/obj/selection = input(L,"Select a destination.", "Duct System") as null|anything in sortList(vents)
if(!selection) return
if(!selection)
return
if(!Adjacent(L))
if(!Adjacent(L) || L.stat || L.lying || !L.ventcrawler || welded)
return
if(iscarbon(L) && L.ventcrawler < 2) // lesser ventcrawlers can't bring items
for(var/obj/item/carried_item in L.contents)
@@ -359,11 +360,10 @@
if(!target_vent)
return
for(var/mob/O in viewers(L, null))
O.show_message(text("<B>[L] scrambles into the ventilation ducts!</B>"), 1)
L.visible_message("<span class='notice'>[L] scrambles into the ventilation ducts!</span>", \
"<span class='notice'>You scramble into the ventilation ducts.</span>")
for(var/mob/O in hearers(target_vent,null))
O.show_message("You hear something squeezing through the ventilation ducts.",2)
target_vent.audible_message("<span class='notice'>You hear something squeezing through the ventilation ducts.</span>")
if(target_vent.welded) //the vent can be welded while they scrolled through the list.
target_vent = src