@ -12,6 +12,8 @@ import engine.loot.ModTableEntry;
@@ -12,6 +12,8 @@ import engine.loot.ModTableEntry;
import engine.loot.ModTypeTableEntry ;
import engine.loot.WorkOrder ;
import engine.mbEnums ;
import engine.net.DispatchMessage ;
import engine.net.client.msg.ItemProductionMsg ;
import engine.objects.* ;
import engine.powers.EffectsBase ;
import engine.powers.poweractions.AbstractPowerAction ;
@ -302,6 +304,11 @@ public enum ForgeManager implements Runnable {
@@ -302,6 +304,11 @@ public enum ForgeManager implements Runnable {
vendorItemLookup . get ( workOrder . vendor ) . add ( forged_item ) ;
ForgeManager . vendorWorkOrderLookup . get ( workOrder . vendor ) . add ( workOrder ) ;
// Update NPC window
ItemProductionMsg outMsg = new ItemProductionMsg ( workOrder . vendor . building , workOrder . vendor , forged_item , 8 , true ) ;
DispatchMessage . dispatchMsgToInterestArea ( workOrder . vendor , outMsg , mbEnums . DispatchChannel . SECONDARY , 700 , false , false ) ;
Logger . info ( "Forging item: " + forged_item . objectUUID + " (" + forged_item . templateID + ") " + forged_item . template . item_base_name ) ;
workOrder . total_produced = workOrder . total_produced + 1 ;
}