Browse Source

more cleanup

kill_counters
andy 2 years ago
parent
commit
533af3a355
  1. 1
      src/ship/drops/mod.rs
  2. 3
      tests/test_unseal_items.rs

1
src/ship/drops/mod.rs

@ -214,6 +214,5 @@ mod 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);
println!("drop: {:?}", drop);
}
}

3
tests/test_unseal_items.rs

@ -183,7 +183,8 @@ async fn test_all_equipped_kill_counters_increase_per_kill() {
let w = inventory.items.iter().find(|x| x.individual().unwrap().id == equipped_items.weapon.unwrap()).unwrap().individual().unwrap();
let u = inventory.items.iter().find(|x| x.individual().unwrap().id == equipped_items.unit[0].unwrap()).unwrap().individual().unwrap();
assert!(w.item.as_client_bytes()[11] == u.item.as_client_bytes()[11]);
assert!(w.item.as_client_bytes()[11] == 1);
assert!(u.item.as_client_bytes()[11] == 1);
}
#[async_std::test]

Loading…
Cancel
Save