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

This commit is contained in:
Lila Hioh
2022-07-12 13:23:43 +00:00
committed by Ryan
parent 25c30f0444
commit b063fefbc5
@@ -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")