test fix, remove prnt lines

This commit is contained in:
Mashy 2019-05-01 15:16:13 +10:00
parent 3e271d4455
commit f3aef83305
2 changed files with 2 additions and 4 deletions

View File

@ -1068,8 +1068,8 @@ mod tests {
let x_cryp = x_team.cryps[0].clone();
let y_cryp = y_team.cryps[0].clone();
game.team_by_id(y_team.id).cryp_by_id(y_cryp.id).unwrap().red_damage.force(u64::max_value());
game.team_by_id(y_team.id).cryp_by_id(y_cryp.id).unwrap().speed.force(u64::max_value());
game.team_by_id(y_team.id).cryp_by_id(y_cryp.id).unwrap().red_damage.force(1000000000);
game.team_by_id(y_team.id).cryp_by_id(y_cryp.id).unwrap().speed.force(1000000000);
// just in case
// remove all mitigation

View File

@ -829,7 +829,6 @@ fn touch(source: &mut Cryp, target: &mut Cryp, mut results: Resolutions, skill:
fn attack(source: &mut Cryp, target: &mut Cryp, mut results: Resolutions, skill: Skill) -> Resolutions {
let amount = source.red_damage().pct(skill.multiplier());
println!("{:?}", amount);
target.deal_red_damage(skill, amount)
.into_iter()
.for_each(|e| results.push(Resolution::new(source, target).event(e)));
@ -1231,7 +1230,6 @@ mod tests {
assert!(y.affected(Effect::Clutch));
let mut results = attack(&mut x, &mut y, vec![], Skill::Attack);
println!("{:?}", y.green_life());
assert!(y.green_life() == 1);
let Resolution { source: _, target: _, event } = results.remove(0);