resource merchant work
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
package engine.net.client;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.*;
|
||||
import engine.InterestManagement.WorldGrid;
|
||||
import engine.exception.MsgSendException;
|
||||
@@ -1583,6 +1584,11 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
// msg.setItemID(buy.getObjectUUID());
|
||||
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||
if(npc.getName().equals("Resource Merchant")){
|
||||
MobLoot resource = new MobLoot(npc,ItemBase.getItemBase(buy.getItemBaseID()), 1, true);
|
||||
resource.magicValue = Warehouse.getCostForResource(buy.getItemBaseID());
|
||||
npc.getCharItemManager().addItemToInventory(resource);
|
||||
}
|
||||
itemMan.updateInventory();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user