Persisting effects in complete item

This commit is contained in:
2024-04-20 12:33:55 -04:00
parent cca4521c93
commit 98d03620bc
3 changed files with 35 additions and 26 deletions
@@ -153,6 +153,14 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
// Persist item and add to vendor inventory
Item completedItem = DbManager.ItemQueries.PERSIST(virtualItem);
// Apply Item effects for Prefix and Suffix tokens
completedItem.prefixToken = virtualItem.prefixToken;
completedItem.suffixToken = virtualItem.suffixToken;
ForgeManager.applyItemEffects(completedItem);
vendor.charItemManager.addItemToInventory(completedItem);
ItemProductionMsg outMsg1 = new ItemProductionMsg(vendor.building, vendor, completedItem, mbEnums.ProductionActionType.DEPOSIT, true);