Persisting effects in complete item
This commit is contained in:
1 parent
cca4521c93
commit
98d03620bc
3 files changed
+35
-26
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user