siphon test fix
This commit is contained in:
parent
f93aba866f
commit
4758ae1987
@ -20,13 +20,14 @@ function registerEvents(store) {
|
||||
|
||||
// cryp animations
|
||||
function crypAnimations() {
|
||||
anime({
|
||||
const cryps = document.querySelectorAll('img');
|
||||
if (!cryps.length) return window.requestAnimationFrame(crypAnimations);
|
||||
return anime({
|
||||
targets: 'img',
|
||||
translateX: () => anime.random(-20, 20),
|
||||
translateY: () => anime.random(-20, 20),
|
||||
rotate: () => anime.random(-90, 90),
|
||||
duration: () => anime.random(5000, 6000),
|
||||
delay: () => anime.random(0, 1000),
|
||||
direction: 'alternate',
|
||||
easing: 'linear',
|
||||
loop: true,
|
||||
|
||||
@ -1378,6 +1378,12 @@ mod tests {
|
||||
_ => panic!("not siphon"),
|
||||
};
|
||||
|
||||
let Resolution { source: _, target: _, event } = results.remove(0);
|
||||
match event {
|
||||
Event::Damage { amount, skill: _, mitigation: _, colour: _} => assert_eq!(amount, 256),
|
||||
_ => panic!("not damage siphon"),
|
||||
};
|
||||
|
||||
let Resolution { source: _, target, event } = results.remove(0);
|
||||
match event {
|
||||
Event::Healing { amount, skill: _, overhealing: _ } => {
|
||||
@ -1386,13 +1392,6 @@ mod tests {
|
||||
},
|
||||
_ => panic!("not healing"),
|
||||
};
|
||||
|
||||
let Resolution { source: _, target: _, event } = results.remove(0);
|
||||
match event {
|
||||
Event::Damage { amount, skill: _, mitigation: _, colour: _} => assert_eq!(amount, 256),
|
||||
_ => panic!("not damage siphon"),
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user