Implemented a generic book interface

Converted all books to new book interface
Converted stats command to use the new book interface
This commit is contained in:
Oven Bread
2023-04-24 14:32:52 +00:00
committed by Ryan
parent 4b20cdd001
commit 323c653275
35 changed files with 2177 additions and 2385 deletions
@@ -1,5 +1,6 @@
package content.global.dialogue;
import content.global.handlers.item.book.GeneralRuleBook;
import core.game.dialogue.DialoguePlugin;
import core.game.node.entity.npc.NPC;
import core.game.node.entity.player.Player;
@@ -122,7 +123,7 @@ public final class TownCrierDialogue extends DialoguePlugin {
GameWorld.getPulser().submit(new Pulse(4) {
@Override
public boolean pulse() {
//player.getDialogueInterpreter().open(496107759); // TODO rulebook broken
GeneralRuleBook.Companion.openBook(player);
return true;
}
});