Fixes some procs that sleep inside SHOULD_NOT_SLEEP procs (#96959)

## About The Pull Request

I fixed should_not_sleep() locally as it wasn't catching all cases. I
PR'd this but want to do some damage control before its merged so our
linters dont fail on master

This revealed some procs that are sleeping but could run in
SHOULD_NOT_SLEEP procs.

I'll probably keep doing more of these.

## Why It's Good For The Game

prevents procs that shouldnt nap from napping

## Changelog

🆑
fix: Fixed some sleeping procs that could run in procs that arent
allowed to sleep
/🆑
This commit is contained in:
CabinetOnFire
2026-07-14 21:12:31 +02:00
committed by GitHub
parent 6242466aba
commit ef8cfb8b8d
10 changed files with 13 additions and 12 deletions
@@ -1374,7 +1374,7 @@
/datum/reagent/toxin/bonehurtingjuice/on_mob_add(mob/living/carbon/affected_mob)
. = ..()
affected_mob.say("oof ouch my bones", forced = /datum/reagent/toxin/bonehurtingjuice)
INVOKE_ASYNC(affected_mob, TYPE_PROC_REF(/atom/movable, say), "oof ouch my bones", forced = /datum/reagent/toxin/bonehurtingjuice)
/datum/reagent/toxin/bonehurtingjuice/on_mob_life(mob/living/carbon/affected_mob, seconds_per_tick, metabolization_ratio)
. = ..()