pub struct FingererTreeContrib {
pub flat_fps: f64,
pub add_percent: f64,
pub mul_factor: Mag,
pub cost_mul: Mag,
}Expand description
Per-fingerer contribution from the tree. Mirrors FingererAggregate
(additive percent sums, mul factor multiplies, flat sums) so the FPS
formula combines tree + modifier contributions symmetrically.
Multiplicative fields live in Mag (log-magnitude) because they
compound across hundreds-to-thousands of bought nodes; the original
f64 storage produced Infinity in long-haul play. Additive fields
(flat_fps, add_percent) stay f64 — they don’t compound and
per-node values stay tiny.
Fields§
§flat_fps: f64§add_percent: f64§mul_factor: Mag§cost_mul: MagMultiplicative on the buy cost of this fingerer (< 1.0 discount,
> 1.0 inflation). Used by GameState::cost.
Trait Implementations§
Source§impl Clone for FingererTreeContrib
impl Clone for FingererTreeContrib
Source§fn clone(&self) -> FingererTreeContrib
fn clone(&self) -> FingererTreeContrib
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FingererTreeContrib
impl Debug for FingererTreeContrib
Source§impl Default for FingererTreeContrib
impl Default for FingererTreeContrib
Source§impl PartialEq for FingererTreeContrib
impl PartialEq for FingererTreeContrib
Source§fn eq(&self, other: &FingererTreeContrib) -> bool
fn eq(&self, other: &FingererTreeContrib) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FingererTreeContrib
impl StructuralPartialEq for FingererTreeContrib
Auto Trait Implementations§
impl Freeze for FingererTreeContrib
impl RefUnwindSafe for FingererTreeContrib
impl Send for FingererTreeContrib
impl Sync for FingererTreeContrib
impl Unpin for FingererTreeContrib
impl UnsafeUnpin for FingererTreeContrib
impl UnwindSafe for FingererTreeContrib
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