Files
WaterpigandGitHub e63321bb2d Fixes proning of borers and humans (#2718)
## 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>


![image](https://github.com/user-attachments/assets/44bab785-20f5-4a1a-8eb9-491da579f04b)

</details>

## Changelog
🆑
fix: Fixed armycrawl chatspam when unable to crawl
fix: Fixed hidden borers unable to ventcrawl
/🆑
2024-12-19 01:51:50 -08:00

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