From b063fefbc515701a266b60b8e6efa640209ab0d5 Mon Sep 17 00:00:00 2001 From: Lila Hioh Date: Tue, 12 Jul 2022 13:23:43 +0000 Subject: [PATCH] Updated the farming patch inspect option so that it no longer tells players that water is needed in dead, diseased, fully grown, or empty patches --- .../game/node/entity/skill/farming/InspectionHandler.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Server/src/main/kotlin/rs09/game/node/entity/skill/farming/InspectionHandler.kt b/Server/src/main/kotlin/rs09/game/node/entity/skill/farming/InspectionHandler.kt index 9e77a6891..0253632cb 100644 --- a/Server/src/main/kotlin/rs09/game/node/entity/skill/farming/InspectionHandler.kt +++ b/Server/src/main/kotlin/rs09/game/node/entity/skill/farming/InspectionHandler.kt @@ -29,7 +29,11 @@ class InspectionHandler : OptionHandler() { else "This patch has something growing in it." } val status2 = if(patch.type == PatchType.ALLOTMENT || patch.type == PatchType.FLOWER || patch.type == PatchType.HOPS){ - if(p.isWatered) "This patch has been watered." else "This patch could use some water." + if(p.isWatered) { + "This patch has been watered." + } else if(p.getCurrentState() > 3 && !p.isGrown() && !p.isDead && !p.isDiseased) { + "This patch could use some water." + } else "" } else "" val status3 = if(p.compost == CompostType.NONE) "This patch has not been treated." else "This patch has been treated with ${p.compost.name.toLowerCase()} compost." player.sendMessage("$status1 $status2")