Rename semantics, fix save states and fix regrab count not being reset on respawn.
This commit is contained in:
@@ -500,6 +500,7 @@ pub struct StatefulFighterQuery {
|
||||
pub player: &'static Player,
|
||||
pub pending_hit_reaction: &'static mut FighterPendingHitReaction,
|
||||
pub hitstop: &'static mut FighterHitstop,
|
||||
pub ledge_info: &'static mut FighterLedgeInformation,
|
||||
pub hitstop_shake: &'static mut FighterHitstopShake,
|
||||
pub pending_respawn: &'static mut FighterPendingRespawn,
|
||||
pub damage: &'static mut FighterDamage,
|
||||
@@ -709,6 +710,7 @@ pub fn state_collision_interrupt_system(
|
||||
mut pending_respawn,
|
||||
player,
|
||||
mut damage,
|
||||
mut ledge_info,
|
||||
..
|
||||
} = fighter;
|
||||
|
||||
@@ -757,6 +759,9 @@ pub fn state_collision_interrupt_system(
|
||||
|
||||
// reset percentage
|
||||
*damage = FighterDamage::default();
|
||||
// reset ledge
|
||||
|
||||
*ledge_info = FighterLedgeInformation::default();
|
||||
|
||||
transition_state(
|
||||
&mut state,
|
||||
|
||||
Reference in New Issue
Block a user