Implemented farming spirit trees

This commit is contained in:
Syndromeramo
2025-07-15 12:13:02 +00:00
committed by Ryan
parent 2a438ce349
commit 5c13610776
7 changed files with 122 additions and 20 deletions
@@ -26,7 +26,7 @@ class HealthChecker : OptionHandler() {
val patch = fPatch.getPatchFor(player)
val type = patch.patch.type
if (type != PatchType.BUSH_PATCH && type != PatchType.FRUIT_TREE_PATCH && type != PatchType.TREE_PATCH && type != PatchType.CACTUS_PATCH) {
if (!patch.isCheckable()) {
sendMessage(player, "This shouldn't be happening. Please report this.")
return true
}
@@ -44,6 +44,10 @@ class HealthChecker : OptionHandler() {
patch.setCurrentState(patch.getCurrentState() - 14)
sendMessage(player, "You examine the tree for signs of disease and find that it is in perfect health.")
}
PatchType.SPIRIT_TREE_PATCH -> {
patch.setCurrentState(patch.getCurrentState() - 24)
sendMessage(player, "You examine the tree for signs of disease and find that it is in perfect health.")
}
PatchType.BUSH_PATCH -> {
patch.setCurrentState(patch.plantable!!.value + patch.plantable!!.stages + 4)
sendMessage(player, "You examine the bush for signs of disease and find that it's in perfect health.")