|
|
@ -1421,6 +1421,80 @@ impl WeaponType { |
|
|
|
_ => Err(ItemParseError::InvalidWeaponType),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn special_penalty(&self) -> f32 {
|
|
|
|
match(self) {
|
|
|
|
WeaponType::Saber => 0.0,
|
|
|
|
WeaponType::Brand => 0.0,
|
|
|
|
WeaponType::Buster => 0.0,
|
|
|
|
WeaponType::Pallasch => 0.0,
|
|
|
|
WeaponType::Gladius => 0.0,
|
|
|
|
WeaponType::Handgun => 0.0,
|
|
|
|
WeaponType::Autogun => 0.0,
|
|
|
|
WeaponType::Lockgun => 0.0,
|
|
|
|
WeaponType::Railgun => 0.0,
|
|
|
|
WeaponType::Raygun => 0.0,
|
|
|
|
WeaponType::Rifle => 0.0,
|
|
|
|
WeaponType::Sniper => 0.0,
|
|
|
|
WeaponType::Blaster => 0.0,
|
|
|
|
WeaponType::Beam => 0.0,
|
|
|
|
WeaponType::Laser => 0.0,
|
|
|
|
WeaponType::Cane => 0.0,
|
|
|
|
WeaponType::Stick => 0.0,
|
|
|
|
WeaponType::Mace => 0.0,
|
|
|
|
WeaponType::Club => 0.0,
|
|
|
|
WeaponType::Rod => 0.0,
|
|
|
|
WeaponType::Pole => 0.0,
|
|
|
|
WeaponType::Pillar => 0.0,
|
|
|
|
WeaponType::Striker => 0.0,
|
|
|
|
WeaponType::Wand => 0.0,
|
|
|
|
WeaponType::Staff => 0.0,
|
|
|
|
WeaponType::Baton => 0.0,
|
|
|
|
WeaponType::Scepter => 0.0,
|
|
|
|
|
|
|
|
WeaponType::Sword => 0.5,
|
|
|
|
WeaponType::Gigush => 0.5,
|
|
|
|
WeaponType::Breaker => 0.5,
|
|
|
|
WeaponType::Claymore => 0.5,
|
|
|
|
WeaponType::Calibur => 0.5,
|
|
|
|
WeaponType::FlowensSword => 0.5,
|
|
|
|
WeaponType::LastSurvivor => 0.5,
|
|
|
|
WeaponType::DragonSlayer => 0.5,
|
|
|
|
WeaponType::Dagger => 0.5,
|
|
|
|
WeaponType::Knife => 0.5,
|
|
|
|
WeaponType::Blade => 0.5,
|
|
|
|
WeaponType::Edge => 0.5,
|
|
|
|
WeaponType::Ripper => 0.5,
|
|
|
|
WeaponType::BladeDance => 0.5,
|
|
|
|
WeaponType::BloodyArt => 0.5,
|
|
|
|
WeaponType::CrossScar => 0.5,
|
|
|
|
WeaponType::ZeroDivide => 0.5,
|
|
|
|
WeaponType::TwoKamui => 0.5,
|
|
|
|
WeaponType::Partisan => 0.5,
|
|
|
|
WeaponType::Halbert => 0.5,
|
|
|
|
WeaponType::Glaive => 0.5,
|
|
|
|
WeaponType::Berdys => 0.5,
|
|
|
|
WeaponType::Gungnir => 0.5,
|
|
|
|
|
|
|
|
WeaponType::Slicer => 0.6666,
|
|
|
|
WeaponType::Spinner => 0.6666,
|
|
|
|
WeaponType::Cutter => 0.6666,
|
|
|
|
WeaponType::Sawcer => 0.6666,
|
|
|
|
WeaponType::Diska => 0.6666,
|
|
|
|
WeaponType::Mechgun => 0.6666,
|
|
|
|
WeaponType::Assault => 0.6666,
|
|
|
|
WeaponType::Repeater => 0.6666,
|
|
|
|
WeaponType::Gatling => 0.6666,
|
|
|
|
WeaponType::Vulcan => 0.6666,
|
|
|
|
WeaponType::Shot => 0.6666,
|
|
|
|
WeaponType::Spread => 0.6666,
|
|
|
|
WeaponType::Cannon => 0.6666,
|
|
|
|
WeaponType::Launcher => 0.6666,
|
|
|
|
WeaponType::Arms => 0.6666,
|
|
|
|
|
|
|
|
_ => 1.0,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|