Play footstep SFX from movement motions
This commit is contained in:
@@ -4799,6 +4799,14 @@ func _check_attack_motion_profiles(failures: Array[String]) -> void:
|
||||
failures.append("heavy animation should use swing SFX before hit resolution")
|
||||
if scene._action_motion_sfx("tactic_damage") != "skill_cast":
|
||||
failures.append("tactic animation should use skill cast SFX")
|
||||
if scene._movement_motion_sfx("cao_cao", Vector2i(1, 6), Vector2i(2, 6)) != "footstep":
|
||||
failures.append("unit movement animation should use footstep SFX")
|
||||
scene._on_unit_motion_requested("cao_cao", Vector2i(1, 6), Vector2i(2, 6))
|
||||
var move_motion: Dictionary = scene.unit_motion_by_unit.get("cao_cao", {})
|
||||
if str(move_motion.get("sfx", "")) != "footstep":
|
||||
failures.append("stored movement motion should queue footstep SFX: %s" % str(move_motion))
|
||||
if not bool(move_motion.get("sfx_played", false)):
|
||||
failures.append("immediate movement motion should mark SFX as played: %s" % str(move_motion))
|
||||
_check_attack_motion_curves(failures, scene)
|
||||
scene.free()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user