Browse Source

Item prefix and suffix applied

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

Loading…
Cancel
Save