Reviewed-on: #42 Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #42.
This commit is contained in:
@@ -82,6 +82,10 @@ impl HitStop {
|
||||
|
||||
Self(frames)
|
||||
}
|
||||
|
||||
pub fn calculate_shake_frames(&self, game_settings: &GameSettings) -> u32 {
|
||||
(FGi32::from_num(self.0) * game_settings.fighter_common.visual_shake_frames_per_hitstop_frame).floor().to_num()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user