Compare commits

..
1 Commits
Author SHA1 Message Date
EIREXE ebddf353d4 Implement invulnerability/intangibility and sakurai angle
CI / build-and-test (pull_request) Successful in 1m25s
CI / production-build (pull_request) Successful in 11m0s
2026-10-03 11:58:38 +02:00
+3 -8
View File
@@ -33,14 +33,9 @@ impl FighterStateImpl for AirDodgeState {
} }
fn update(&mut self, state_context: &mut UpdateContext) { fn update(&mut self, state_context: &mut UpdateContext) {
let airdodge_intangible_end = state_context.fighter_attributes.air_dodge_intangible_start let airdodge_intangible_end = state_context.fighter_attributes.air_dodge_intangible_start + state_context.fighter_attributes.air_dodge_intangible_duration;
+ state_context if state_context.animation_frame == state_context.fighter_attributes.air_dodge_intangible_start {
.fighter_attributes *state_context.vulnerability = FighterInvulnerabilityState::Intangible { frames_remaining: Some(state_context.fighter_attributes.air_dodge_intangible_duration) };
.air_dodge_intangible_duration;
if state_context.animation_frame
== state_context.fighter_attributes.air_dodge_intangible_start
{
*state_context.vulnerability = FighterInvulnerabilityState::Intangible;
} else if state_context.animation_frame >= airdodge_intangible_end { } else if state_context.animation_frame >= airdodge_intangible_end {
*state_context.vulnerability = FighterInvulnerabilityState::Vulnerable; *state_context.vulnerability = FighterInvulnerabilityState::Vulnerable;
} }