Implement damage UI

This commit is contained in:
2026-09-19 17:13:05 +02:00
parent 7269a1cb49
commit 3678d6a53d
10 changed files with 154 additions and 56 deletions
+3 -1
View File
@@ -49,10 +49,11 @@ pub fn resolve_fighter_hits(
};
let attack_script = attack_scripts.get(&hit.attack_script)?;
let hitbox = attack_script.hitboxes.get(hit.hitbox_index)?;
dbg!(hitbox.damage.0);
let damage_received = stale_move_queue
.get_attack_damage_multiplier(hit.attack_kind)
* hitbox.damage.0;
dbg!(damage_received);
Some((
hit.attacker,
damage_received,
@@ -100,6 +101,7 @@ pub fn resolve_fighter_hits(
hitstun_frames: knockback.get_hitstun_frames(&game_settings),
hitstop_frames: hitstop,
kind: HitReactionKind::Flinch,
damage: FighterDamage(attack_damage)
},
));
}