pub struct Affix {
pub name: &'static str,
pub affix_type: AffixType,
pub stat_modifiers: Vec<(StatKind, f32)>,
pub required_level: u32,
pub weight: f32,
pub allowed_types: Vec<ItemType>,
}Expand description
A stat modifier applied by an affix.
Fields§
§name: &'static str§affix_type: AffixType§stat_modifiers: Vec<(StatKind, f32)>§required_level: u32§weight: f32Spawn weight (higher = more common).
allowed_types: Vec<ItemType>Which item types can receive this affix (empty = all).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Affix
impl RefUnwindSafe for Affix
impl Send for Affix
impl Sync for Affix
impl Unpin for Affix
impl UnsafeUnpin for Affix
impl UnwindSafe for Affix
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