Browse Source

printing is for turbo nerds

expsteal
andy 2 years ago
parent
commit
7c3ff1bea1
  1. 1
      src/ship/packet/handler/message.rs
  2. 3
      tests/test_exp_gain.rs

1
src/ship/packet/handler/message.rs

@ -485,7 +485,6 @@ where
remaining_exp);
monster.steal_exp(exp_earned, area_client.local_client.id() as usize);
println!("monster info: {:?}", monster);
let clients_in_area = client_location.get_clients_in_room(room_id).map_err(|err| -> ClientLocationError { err.into() })?;
let gain_exp_pkt = builder::message::character_gained_exp(area_client, exp_earned);

3
tests/test_exp_gain.rs

@ -441,7 +441,6 @@ async fn test_exp_steal_android_boost_in_ultimate() {
let c1 = ship.clients.get(&ClientId(1)).unwrap();
let c2 = ship.clients.get(&ClientId(2)).unwrap();
println!("c1 exp: {:?}, c2 exp: {:?}", c1.character.exp, c2.character.exp);
assert!(c1.character.exp == 80000080);
assert!(c2.character.exp == 80000032);
}
@ -556,7 +555,6 @@ async fn test_exp_steal_no_android_boost_in_vhard() {
let c1 = ship.clients.get(&ClientId(1)).unwrap();
let c2 = ship.clients.get(&ClientId(2)).unwrap();
println!("c1 exp: {:?}, c2 exp: {:?}", c1.character.exp, c2.character.exp);
assert!(c1.character.exp == 80000010);
assert!(c2.character.exp == 80000010);
}
@ -909,7 +907,6 @@ async fn test_each_client_can_steal_full_exp_from_same_enemy() {
let c1 = ship.clients.get(&ClientId(1)).unwrap();
let c2 = ship.clients.get(&ClientId(2)).unwrap();
println!("c1 exp: {:?}, c2 exp: {:?}", c1.character.exp, c2.character.exp);
assert!(c1.character.exp == 5);
assert!(c2.character.exp == 5);

Loading…
Cancel
Save