pub struct ProgressionConfig {
pub max_level: u32,
pub xp_curve_base: f64,
pub base_xp: u64,
pub level_hp_bonus: u32,
pub level_stat_bonus: u32,
pub reputation_min: i64,
pub reputation_max: i64,
}Expand description
Leveling, XP curve, and reputation parameters.
Fields§
§max_level: u32Maximum character level. Default: 100.
xp_curve_base: f64Exponential XP curve base. XP(n) = base_xp * xp_curve_base^(n-1). Default: 1.5.
base_xp: u64Base XP required for level 2. Default: 100.
level_hp_bonus: u32HP bonus gained per level. Default: 10.
level_stat_bonus: u32Stat points gained per level. Default: 2.
reputation_min: i64Minimum reputation value. Default: -1000.
reputation_max: i64Maximum reputation value. Default: 1000.
Trait Implementations§
Source§impl Clone for ProgressionConfig
impl Clone for ProgressionConfig
Source§fn clone(&self) -> ProgressionConfig
fn clone(&self) -> ProgressionConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ProgressionConfig
impl Debug for ProgressionConfig
Source§impl Default for ProgressionConfig
impl Default for ProgressionConfig
Source§impl<'de> Deserialize<'de> for ProgressionConfig
impl<'de> Deserialize<'de> for ProgressionConfig
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 ProgressionConfig
impl RefUnwindSafe for ProgressionConfig
impl Send for ProgressionConfig
impl Sync for ProgressionConfig
impl Unpin for ProgressionConfig
impl UnsafeUnpin for ProgressionConfig
impl UnwindSafe for ProgressionConfig
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