Function veloren_common_net::synced_components::inner::inventory::item::modular::random_weapon
pub fn random_weapon(
tool: ToolKind,
material: Material,
hand_restriction: Option<Hands>,
rng: &mut impl Rng,
) -> Result<Item, ModularWeaponCreationError>
Expand description
Creates a random modular weapon when provided with a toolkind, material, and optionally the handedness