intent cleanup (#16825)

This commit is contained in:
Kashargul
2025-01-03 08:14:28 +01:00
committed by GitHub
parent e03fe8c077
commit 3094e65b71
40 changed files with 80 additions and 77 deletions
@@ -41,13 +41,13 @@
to_chat(src, span_notice("We may move at our normal speed while hidden."))
if(must_walk)
H.set_m_intent("walk")
H.set_m_intent(I_WALK)
var/remain_cloaked = TRUE
while(remain_cloaked) //This loop will keep going until the player uncloaks.
sleep(1 SECOND) // Sleep at the start so that if something invalidates a cloak, it will drop immediately after the check and not in one second.
if(H.m_intent != "walk" && must_walk) // Moving too fast uncloaks you.
if(H.m_intent != I_WALK && must_walk) // Moving too fast uncloaks you.
remain_cloaked = 0
if(!H.mind.changeling.cloaked)
remain_cloaked = 0
@@ -65,7 +65,7 @@
H.invisibility = initial(invisibility)
visible_message(span_warning("[src] suddenly fades in, seemingly from nowhere!"),
span_notice("We revert our camouflage, revealing ourselves."))
H.set_m_intent("run")
H.set_m_intent(I_RUN)
H.mind.changeling.cloaked = 0
H.mind.changeling.chem_recharge_rate = old_regen_rate