From 308131449d55eefbbf948c0a3d2092e952cb23bc Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 3 Nov 2019 10:42:48 -0600 Subject: [PATCH] refactor: randomNumber --- server/fixtures/kitty.entity.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/server/fixtures/kitty.entity.js b/server/fixtures/kitty.entity.js index c076919..9e2034e 100644 --- a/server/fixtures/kitty.entity.js +++ b/server/fixtures/kitty.entity.js @@ -9,7 +9,7 @@ export function kittyJSON() { buildTraversal(['entity', 'direction']), ], ), - buildInvoke(['Math', 'randomNumber'], [0.25, 2.5, false]), + buildInvoke(['Math', 'randomNumber'], [0.25, 2.5]), ]); const stopAnimating = buildTraversal( @@ -18,16 +18,21 @@ export function kittyJSON() { ); const firstWait = buildInvoke(['Timing', 'wait'], [ - buildInvoke(['Math', 'randomNumber'], [1, 4, false]) + buildInvoke(['Math', 'randomNumber'], [1, 4]) ]); const turn = buildTraversal( ['entity', 'direction'], - buildInvoke(['Math', 'randomNumber'], [0, 3]) + buildInvoke( + ['Math', 'floor'], + [ + buildInvoke(['Math', 'randomNumber'], [0, 4]) + ] + ), ); const secondWait = buildInvoke(['Timing', 'wait'], [ - buildInvoke(['Math', 'randomNumber'], [0.5, 3, false]) + buildInvoke(['Math', 'randomNumber'], [0.5, 3]) ]); const startAnimating = buildTraversal(