mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
intent cleanup (#16825)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user