test fix, remove prnt lines
This commit is contained in:
parent
3e271d4455
commit
f3aef83305
@ -1068,8 +1068,8 @@ mod tests {
|
|||||||
let x_cryp = x_team.cryps[0].clone();
|
let x_cryp = x_team.cryps[0].clone();
|
||||||
let y_cryp = y_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().red_damage.force(1000000000);
|
||||||
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().speed.force(1000000000);
|
||||||
|
|
||||||
// just in case
|
// just in case
|
||||||
// remove all mitigation
|
// remove all mitigation
|
||||||
|
|||||||
@ -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 {
|
fn attack(source: &mut Cryp, target: &mut Cryp, mut results: Resolutions, skill: Skill) -> Resolutions {
|
||||||
let amount = source.red_damage().pct(skill.multiplier());
|
let amount = source.red_damage().pct(skill.multiplier());
|
||||||
println!("{:?}", amount);
|
|
||||||
target.deal_red_damage(skill, amount)
|
target.deal_red_damage(skill, amount)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.for_each(|e| results.push(Resolution::new(source, target).event(e)));
|
.for_each(|e| results.push(Resolution::new(source, target).event(e)));
|
||||||
@ -1231,7 +1230,6 @@ mod tests {
|
|||||||
assert!(y.affected(Effect::Clutch));
|
assert!(y.affected(Effect::Clutch));
|
||||||
|
|
||||||
let mut results = attack(&mut x, &mut y, vec![], Skill::Attack);
|
let mut results = attack(&mut x, &mut y, vec![], Skill::Attack);
|
||||||
println!("{:?}", y.green_life());
|
|
||||||
assert!(y.green_life() == 1);
|
assert!(y.green_life() == 1);
|
||||||
|
|
||||||
let Resolution { source: _, target: _, event } = results.remove(0);
|
let Resolution { source: _, target: _, event } = results.remove(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user