pub struct DropConfig {
pub base_drop_chance: f32,
pub common_weight: f32,
pub magic_weight: f32,
pub rare_weight: f32,
pub epic_weight: f32,
pub legendary_weight: f32,
pub max_drops: usize,
}Expand description
Drop rate configuration per enemy tier.
Fields§
§base_drop_chance: f32§common_weight: f32§magic_weight: f32§rare_weight: f32§epic_weight: f32§legendary_weight: f32§max_drops: usizeTrait Implementations§
Source§impl Clone for DropConfig
impl Clone for DropConfig
Source§fn clone(&self) -> DropConfig
fn clone(&self) -> DropConfig
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 moreAuto Trait Implementations§
impl Freeze for DropConfig
impl RefUnwindSafe for DropConfig
impl Send for DropConfig
impl Sync for DropConfig
impl Unpin for DropConfig
impl UnsafeUnpin for DropConfig
impl UnwindSafe for DropConfig
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