|
@ -110,11 +110,6 @@ mod test { |
|
|
#[test]
|
|
|
#[test]
|
|
|
fn test_stat_levels() {
|
|
|
fn test_stat_levels() {
|
|
|
let table = CharacterLevelTable::new();
|
|
|
let table = CharacterLevelTable::new();
|
|
|
println!("A {:?}", table.get_stats_from_exp(Class::FOmarl, 0));
|
|
|
|
|
|
println!("B {:?}", table.get_stats_from_exp(Class::FOmarl, 1));
|
|
|
|
|
|
println!("C {:?}", table.get_stats_from_exp(Class::FOmarl, 50));
|
|
|
|
|
|
println!("D {:?}", table.get_stats_from_exp(Class::FOmarl, 51));
|
|
|
|
|
|
println!("E {:?}", table.get_stats_from_exp(Class::FOmarl, 1000));
|
|
|
|
|
|
assert!(table.get_stats_from_exp(Class::FOmarl, 0) == (1, CharacterStats { hp: 20, atp: 13, mst: 53, evp: 35, dfp: 10, ata: 15, lck: 10 }));
|
|
|
assert!(table.get_stats_from_exp(Class::FOmarl, 0) == (1, CharacterStats { hp: 20, atp: 13, mst: 53, evp: 35, dfp: 10, ata: 15, lck: 10 }));
|
|
|
assert!(table.get_stats_from_exp(Class::FOmarl, 1 << 17) == (36, CharacterStats { hp: 125, atp: 114, mst: 219, evp: 182, dfp: 42, ata: 213, lck: 10 }));
|
|
|
assert!(table.get_stats_from_exp(Class::FOmarl, 1 << 17) == (36, CharacterStats { hp: 125, atp: 114, mst: 219, evp: 182, dfp: 42, ata: 213, lck: 10 }));
|
|
|
}
|
|
|
}
|
|
|