From e363bef29030a58c1bf1a6095eabfe73b147591d Mon Sep 17 00:00:00 2001
From: salagadoola <salagadoola@ymail.com>
Date: Fri, 15 Dec 2023 16:38:59 +0800
Subject: [PATCH] fix: when robinmissing is "mansion", Robin should not appear
 in garden and canteen

---
 game/03-JavaScript/ingame.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/03-JavaScript/ingame.js b/game/03-JavaScript/ingame.js
index 47bede9e2e..2931b1d056 100644
--- a/game/03-JavaScript/ingame.js
+++ b/game/03-JavaScript/ingame.js
@@ -602,7 +602,7 @@ function getRobinLocation() {
 		return;
 	} else if (V.robinlocationoverride && V.robinlocationoverride.during.includes(Time.hour)) {
 		T.robin_location = V.robinlocationoverride.location;
-	} else if (["docks", "landfill", "dinner", "pillory"].includes(V.robinmissing)) {
+	} else if (["docks", "landfill", "dinner", "pillory", "mansion"].includes(V.robinmissing)) {
 		T.robin_location = V.robinmissing;
 	} else if (!between(Time.hour, 7, 20)) {
 		// if hour is 6 or lower, or 21 or higher.
-- 
GitLab