Implemented auto splitting of excessively long dialogue lines

Many new farming-related player messages added, and some existing messages updated
Raking animation updated
Herb picking animation updated
Digging up farming patch animation updated
Plant cure animation updated
A scarecrow can be retrieved from a flower patch by digging it up with a spade
Picking fruit/berries stops when running out of inventory space
The player can no longer dig up a tree they have planted before chopping it down
This commit is contained in:
zsrv
2024-02-14 11:33:13 +00:00
committed by Ryan
parent 38c50c465d
commit 1d12dd741f
23 changed files with 728 additions and 520 deletions
+6 -1
View File
@@ -767,10 +767,15 @@ fun emote(entity: Entity, emote: Emotes) {
/**
* Sends a message to the given player.
*
* The message will be split on word boundaries into multiple lines so
* that none of the lines will overflow the player's message box.
*
* @param player the player to send the message to.
* @param message the message to send.
*/
fun sendMessage(player: Player, message: String) {
player.sendMessage(message)
player.sendMessages(*splitLines(message, 86))
}
/**