forked from 2009Scape/Server
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:
parent
25c30f0444
commit
b063fefbc5
1 changed files with 5 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue