Browse Source

Item prefix and suffix applied

combat-2
MagicBot 8 months ago
parent
commit
d64bd193d8
  1. 8
      src/engine/gameManager/ForgeManager.java

8
src/engine/gameManager/ForgeManager.java

@ -276,10 +276,6 @@ public enum ForgeManager implements Runnable { @@ -276,10 +276,6 @@ public enum ForgeManager implements Runnable {
else
forgedItem.suffixToken = workOrder.suffixToken;
// Apply Item effects for Prefix and Suffix tokens
applyItemEffects(forgedItem);
// Forged random rolled items are unidentified until completed
if (workOrder.prefixToken == 0 && workOrder.suffixToken == 0)
@ -316,6 +312,10 @@ public enum ForgeManager implements Runnable { @@ -316,6 +312,10 @@ public enum ForgeManager implements Runnable {
Item completedItem = DbManager.ItemQueries.PERSIST(workOrderItem);
// Apply Item effects for Prefix and Suffix tokens
applyItemEffects(workOrderItem);
// add to the vendor inventory
workOrder.vendor.charItemManager.addItemToInventory(completedItem);

Loading…
Cancel
Save