wintertodt: improve fletching activity status detection

This commit is contained in:
Michael
2021-07-03 08:00:35 +10:00
committed by GitHub
parent 2f388c6d59
commit 9a038f5025

View File

@@ -260,6 +260,12 @@ public class WintertodtPlugin extends Plugin
MessageNode messageNode = chatMessage.getMessageNode();
final WintertodtInterruptType interruptType;
if (messageNode.getValue().startsWith("You carefully fletch the root"))
{
setActivity(WintertodtActivity.FLETCHING);
return;
}
if (messageNode.getValue().startsWith("The cold of"))
{
interruptType = WintertodtInterruptType.COLD;