mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Ventcrawling mobs now recieve a 1 second delay/warning before exiting vents (#75937)
## About The Pull Request Ventcrawling mobs must now complete a 1 second long do_after before exiting a vent.  ## Why It's Good For The Game Helps prevent those _wacky silly awkward moments_ where you speed into a scrubber/vent and accidentally fling yourself out into the open. Having a bit of a delay should reduce frustrations caused by situations like these. ## Changelog 🆑 Rhials qol: Ventcrawling mobs have a 1 second delay/warning before exiting the ventilation. /🆑
This commit is contained in:
@@ -56,9 +56,11 @@
|
||||
|
||||
//Handle the exit here
|
||||
if(HAS_TRAIT(src, TRAIT_MOVE_VENTCRAWLING) && istype(loc, /obj/machinery/atmospherics) && movement_type & VENTCRAWLING)
|
||||
visible_message(span_notice("[src] begins climbing out from the ventilation system..."), span_notice("You begin climbing out from the ventilation system..."))
|
||||
to_chat(src, span_notice("You begin climbing out from the ventilation system..."))
|
||||
if(has_client && isnull(client))
|
||||
return
|
||||
if(!do_after(src, 1 SECONDS, target = ventcrawl_target))
|
||||
return
|
||||
visible_message(span_notice("[src] scrambles out from the ventilation ducts!"),span_notice("You scramble out from the ventilation ducts."))
|
||||
forceMove(ventcrawl_target.loc)
|
||||
REMOVE_TRAIT(src, TRAIT_MOVE_VENTCRAWLING, VENTCRAWLING_TRAIT)
|
||||
|
||||
Reference in New Issue
Block a user