diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 05f05c35..ba5017f5 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -9,6 +9,7 @@ package engine.gameManager; import engine.loot.WorkOrder; +import engine.objects.PlayerCharacter; import java.util.concurrent.BlockingQueue; import java.util.concurrent.DelayQueue; @@ -69,4 +70,9 @@ public enum ForgeManager implements Runnable { workOrders.add(workOrder); } + public static boolean validate(PlayerCharacter playerCharacter, WorkOrder workOrder) { + + + return true; + } } diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index 9e5730e0..6dc2750b 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/src/engine/net/client/handlers/ItemProductionMsgHandler.java @@ -13,6 +13,7 @@ package engine.net.client.handlers; import engine.exception.MsgSendException; import engine.gameManager.ChatManager; import engine.gameManager.DbManager; +import engine.gameManager.ForgeManager; import engine.loot.WorkOrder; import engine.mbEnums; import engine.mbEnums.GameObjectType; @@ -86,6 +87,11 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { workOrder.suffixToken = msg.sToken; workOrder.itemName = msg.name; + // Validate vendor can roll this item + + if (ForgeManager.validate(player, workOrder) == false) + return true; + //Create Multiple Item Function.. Fill all empty slots if (msg.size > 0) {