pub struct Weapon {
pub rune_value: i32,
pub rune_type: Option<Element>,
pub damage: DamageRange,
}Expand description
All the information about a weapon, that is relevant for battle simulations
Fields§
§rune_value: i32The effect amount of this rune
rune_type: Option<Element>The (battle relevant) type this rune has
damage: DamageRangeThe amount of damage this weapon does
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Weapon
impl RefUnwindSafe for Weapon
impl Send for Weapon
impl Sync for Weapon
impl Unpin for Weapon
impl UnsafeUnpin for Weapon
impl UnwindSafe for Weapon
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