This commit is contained in:
parent
b2f3dc9f50
commit
533af3a355
@ -214,6 +214,5 @@ mod test {
|
|||||||
fn test_sjs_drop() {
|
fn test_sjs_drop() {
|
||||||
let mut drop_table = DropTable::<rand_chacha::ChaCha20Rng>::new(Episode::Two, Difficulty::Ultimate, SectionID::Skyly);
|
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);
|
||||||
println!("drop: {:?}", drop);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 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();
|
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]
|
#[async_std::test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user