This commit is contained in:
parent
9201514f53
commit
2067580aba
1 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ const oneko = () => {
|
||||||
const idle = () => {
|
const idle = () => {
|
||||||
idleTime++;
|
idleTime++;
|
||||||
|
|
||||||
// every ~ 20 seconds
|
/* every ~ 20 seconds */
|
||||||
if (
|
if (
|
||||||
idleTime > 10 &&
|
idleTime > 10 &&
|
||||||
Math.floor(Math.random() * 200) == 0 &&
|
Math.floor(Math.random() * 200) == 0 &&
|
||||||
|
@ -208,7 +208,7 @@ const oneko = () => {
|
||||||
|
|
||||||
if (idleTime > 1) {
|
if (idleTime > 1) {
|
||||||
setSprite("alert", 0);
|
setSprite("alert", 0);
|
||||||
// count down after being alerted before moving
|
/* count down after being alerted before moving */
|
||||||
idleTime = Math.min(idleTime, 7);
|
idleTime = Math.min(idleTime, 7);
|
||||||
idleTime -= 1;
|
idleTime -= 1;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue