pub struct BatConfig {
pub enabled: bool,
pub drop_chance: f64,
pub base_min: u32,
pub base_max: u32,
pub looting_bonus_per_level: u32,
}Expand description
Configuration for the bat mechanics module.
Fields§
§enabled: boolWhether this module is active.
drop_chance: f64Chance (0.0 - 1.0) for a bat to drop phantom membrane.
base_min: u32Minimum base amount of phantom membrane dropped.
base_max: u32Maximum base amount of phantom membrane dropped.
looting_bonus_per_level: u32Extra membrane granted per level of Looting.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BatConfig
impl<'de> Deserialize<'de> for BatConfig
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 BatConfig
impl RefUnwindSafe for BatConfig
impl Send for BatConfig
impl Sync for BatConfig
impl Unpin for BatConfig
impl UnsafeUnpin for BatConfig
impl UnwindSafe for BatConfig
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