mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
## About The Pull Request closes #2525 Adds an extra argument to the prone component to make it give handless correctly. Also fixes some logic of armycrawl. ## Why It's Good For The Game Bugfix good ## Proof Of Testing <details> <summary>Screenshots/Videos</summary>  </details> ## Changelog 🆑 fix: Fixed armycrawl chatspam when unable to crawl fix: Fixed hidden borers unable to ventcrawl /🆑
24 lines
775 B
Plaintext
24 lines
775 B
Plaintext
/mob/living/carbon/verb/army_crawl()
|
|
set name = "Army Crawl"
|
|
set category = "IC"
|
|
|
|
var/mob/living/carbon/crawler = src
|
|
|
|
if(HAS_TRAIT(crawler, TRAIT_PRONE))
|
|
visible_message("[crawler] starts to get up")
|
|
if(!do_after(crawler, 3 SECONDS))
|
|
return
|
|
SEND_SIGNAL(crawler, COMSIG_MOVABLE_REMOVE_PRONE_STATE)
|
|
else if(crawler.can_army_crawl())
|
|
visible_message("[crawler] begins to lower themself further")
|
|
if(!do_after(crawler, 3 SECONDS, extra_checks = CALLBACK(crawler, PROC_REF(can_army_crawl))))
|
|
if(!crawler.resting)
|
|
balloon_alert(crawler, "must be laying down!")
|
|
return
|
|
crawler.AddComponent(/datum/component/prone_mob, block_hands = TRUE)
|
|
else
|
|
balloon_alert(crawler, "must be laying down!")
|
|
|
|
/mob/living/carbon/proc/can_army_crawl()
|
|
return resting
|