|
|
@ -213,6 +213,10 @@ mod test { |
|
|
|
#[test]
|
|
|
|
fn test_sjs_drop() {
|
|
|
|
let mut drop_table = DropTable::<rand_chacha::ChaCha20Rng>::new(Episode::Two, Difficulty::Ultimate, SectionID::Skyly);
|
|
|
|
let drop = drop_table.get_rare_drop(&MapArea::Seaside, &MonsterType::GiGue);
|
|
|
|
let drop = drop_table.get_rare_drop(&MapArea::Seaside, &MonsterType::GiGue).unwrap();
|
|
|
|
if let ItemDropType::Weapon(weapon) = drop {
|
|
|
|
assert!(weapon.weapon == weapon::WeaponType::SealedJSword);
|
|
|
|
assert!(weapon.kills == Some(0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|