···6969struct Speed(Stat);
7070```
71717272+It is important to note that this only works when the `derive` is above the `auto_*` macro,
7373+and does *not* work with `auto_bind_plugin`.
7474+7275### Version Compatibility
7376| Bevy | Immediate Stats |
7477|--------|-----------------|
···5959//! # use bevy_app::prelude::*;
6060//! # use bevy_ecs::prelude::*;
6161//! # use immediate_stats::*;
6262-//! # use bevy_auto_plugin::modes::global::prelude::{AutoPlugin, auto_component, auto_resource};
6262+//! # use bevy_auto_plugin::prelude::{AutoPlugin, auto_component, auto_resource};
6363//! fn main() {
6464//! App::new().add_plugins((ImmediateStatsPlugin, MyPlugin)).run();
6565//! }
···7474//! #[auto_resource(plugin = MyPlugin)] // Adds `reset_resource_modifiers` system.
7575//! struct Speed(Stat);
7676//! ```
7777+//!
7878+//! It is important to note that this only works when the `derive` is above the `auto_*` macro,
7979+//! and does *not* work with `auto_bind_plugin`.
7780//!
7881//! ### Version Compatibility
7982//! | Bevy | Immediate Stats |
+9
immediate_stats/src/stat.rs
···7878 self.bonus += modifier.bonus;
7979 self.multiplier *= modifier.multiplier;
8080 }
8181+8282+ /// Scales and applies the [`Modifier`] values to the bonus and multiplier.
8383+ ///
8484+ /// This adds the bonuses, and multiplies the multipliers.
8585+ pub fn apply_scaled(&mut self, modifier: Modifier, fraction: f32) {
8686+ self.bonus += (modifier.bonus as f32 * fraction) as i32;
8787+ // Lerp: https://gist.github.com/laundmo/cb06630109e5e1100f5a2758dfb67cfd
8888+ self.multiplier *= (1.0 - fraction) * 1.0 + fraction * modifier.multiplier;
8989+ }
8190}
82918392impl StatContainer for Stat {