pub struct HuskConfig {
pub enabled: bool,
pub sand_drop_chance: f64,
pub sand_base_min: u32,
pub sand_base_max: u32,
pub sand_looting_bonus: u32,
pub camel_rider_sand_base_max: u32,
pub camel_rider_looting_bonus: u32,
}Expand description
Configuration for the husk mechanics module.
Fields§
§enabled: boolWhether this module is active.
sand_drop_chance: f64Chance (0.0 - 1.0) for a husk to drop sand.
sand_base_min: u32Minimum base amount of sand dropped.
sand_base_max: u32Maximum base amount of sand dropped (non-camel).
sand_looting_bonus: u32Extra sand granted per level of Looting (non-camel).
camel_rider_sand_base_max: u32Maximum base amount of sand dropped when the husk is riding a camel.
camel_rider_looting_bonus: u32Extra sand per level of Looting when the husk is riding a camel.
Trait Implementations§
Source§impl Clone for HuskConfig
impl Clone for HuskConfig
Source§fn clone(&self) -> HuskConfig
fn clone(&self) -> HuskConfig
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 HuskConfig
impl Debug for HuskConfig
Source§impl Default for HuskConfig
impl Default for HuskConfig
Source§impl<'de> Deserialize<'de> for HuskConfig
impl<'de> Deserialize<'de> for HuskConfig
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 HuskConfig
impl RefUnwindSafe for HuskConfig
impl Send for HuskConfig
impl Sync for HuskConfig
impl Unpin for HuskConfig
impl UnsafeUnpin for HuskConfig
impl UnwindSafe for HuskConfig
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