From 6d24fc99ead9cad4fa4c98da4ceaba81ca9e2235 Mon Sep 17 00:00:00 2001 From: Daniel Mendes Date: Sat, 24 Feb 2024 22:14:04 +0000 Subject: [PATCH] Final additions for the initial change These are the leftovers from the initial change I planned to do to the Book of Knowledge, before the full rework was brought up. --- .../gadomancy/common/blocks/tiles/TileKnowledgeBook.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/makeo/gadomancy/common/blocks/tiles/TileKnowledgeBook.java b/src/main/java/makeo/gadomancy/common/blocks/tiles/TileKnowledgeBook.java index ce767c6..5038805 100644 --- a/src/main/java/makeo/gadomancy/common/blocks/tiles/TileKnowledgeBook.java +++ b/src/main/java/makeo/gadomancy/common/blocks/tiles/TileKnowledgeBook.java @@ -28,6 +28,7 @@ import makeo.gadomancy.common.entities.EntityPermNoClipItem; import makeo.gadomancy.common.network.PacketHandler; import makeo.gadomancy.common.network.packets.PacketStartAnimation; import makeo.gadomancy.common.utils.NBTHelper; +import thaumcraft.api.ThaumcraftApi; import thaumcraft.api.aspects.Aspect; import thaumcraft.api.aspects.AspectList; import thaumcraft.api.aspects.IAspectContainer; @@ -47,12 +48,12 @@ public class TileKnowledgeBook extends SynchronizedTileEntity implements EntityPermNoClipItem.IItemMasterTile, IAspectContainer { private static final Random rand = new Random(); - private static final int LOWEST_AMOUNT = 10; - private static final int COGNITIO_TICKS = 20; + private static final int LOWEST_AMOUNT = 1; + private static final int COGNITIO_TICKS = 200; private static final int MAX_NEEDED_KNOWLEDGE = 60; private static final int SURROUNDINGS_SEARCH_XZ = 4; private static final int SURROUNDINGS_SEARCH_Y = 1; - private static final double MULTIPLIER = 4; + private static final double MULTIPLIER = 1; @Deprecated public static Map knowledgeIncreaseMap = new HashMap(); @@ -315,6 +316,7 @@ public class TileKnowledgeBook extends SynchronizedTileEntity if (nd != null && !nd.isComplete()) { ResearchItem ri = ResearchCategories.getResearch(nd.key); if (ri != null) { + int itemWarp = ThaumcraftApi.getWarp(ri.key); this.beginResearch(ri.tags); return true; }