From 3d54162325cece53a0edcbae8156b251dc0cf45d Mon Sep 17 00:00:00 2001 From: "C. Yang" Date: Thu, 4 Jan 2024 20:20:20 -0500 Subject: [PATCH] pt 2 --- src/routines.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/routines.js b/src/routines.js index e5620d9..56005b6 100644 --- a/src/routines.js +++ b/src/routines.js @@ -67,12 +67,15 @@ export default class RoutineManager { actionManager.fishRoutines.push({ fish, script: SCRIPTS.heart, }); + fish.updateMood(true, true); } else { actionManager.fishRoutines.push({ fish, script: SCRIPTS.happy, }); + if (Math.random() < 0.6) { + fish.updateMood(true, true); + } } - fish.updateMood(true, true); } }); });