pub enum Buff {
ClickFrenzy {
ticks_remaining: u32,
initial_ticks: u32,
mult: f64,
},
}Expand description
Global, click-side buffs. Per-fingerer multipliers (the old
Buff::FingererBoost) live on the modifier system in
crate::game::modifier; only buffs that affect global click power
belong here.
Variants§
ClickFrenzy
Fields
§
mult: f64Legacy field, retained for V2/V3 save compatibility but no
longer read by click_power(). The per-click Frenzy bonus
is FPS-scaled (see FRENZY_FPS_SECONDS_PER_CLICK /
FRENZY_FLAT_PER_CLICK in this module). A future V4
migration can drop this field outright; today it just
serializes as 777.0 and gets ignored.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Buff
impl<'de> Deserialize<'de> for Buff
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Buff
impl RefUnwindSafe for Buff
impl Send for Buff
impl Sync for Buff
impl Unpin for Buff
impl UnsafeUnpin for Buff
impl UnwindSafe for Buff
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more