Browse Source

fix drop test

kill_counters
andy 3 years ago
parent
commit
68de2504e0
  1. 6
      src/ship/drops/mod.rs

6
src/ship/drops/mod.rs

@ -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));
}
}
}
Loading…
Cancel
Save