mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fixes Belligerent not updating the hud walk/run button
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
C << "<span class='warning'>Your leg[number_legs > 1 ? "s burn":" burns"] with pain!</span>"
|
||||
C.apply_damage(cultist_damage * 0.5, BURN, "l_leg")
|
||||
C.apply_damage(cultist_damage * 0.5, BURN, "r_leg")
|
||||
C.m_intent = "walk"
|
||||
C.toggle_move_intent()
|
||||
|
||||
|
||||
//Judicial Visor: Creates a judicial visor, which can smite an area.
|
||||
|
||||
@@ -414,7 +414,10 @@
|
||||
/client/verb/toggle_walk_run()
|
||||
set name = "toggle-walk-run"
|
||||
set hidden = 1
|
||||
if(mob)
|
||||
mob.toggle_move_intent()
|
||||
|
||||
if(mob && mob.hud_used && mob.hud_used.static_inventory)
|
||||
for(var/obj/screen/mov_intent/selector in mob.hud_used.static_inventory)
|
||||
selector.toggle(mob);
|
||||
/mob/proc/toggle_move_intent()
|
||||
if(hud_used && hud_used.static_inventory)
|
||||
for(var/obj/screen/mov_intent/selector in hud_used.static_inventory)
|
||||
selector.toggle(src)
|
||||
|
||||
Reference in New Issue
Block a user