forked from MagicBane/Server
Renamed class to not conflict with the java.lang version.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
package engine.net.client.handlers;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.mbEnums;
|
||||
import engine.exception.MsgSendException;
|
||||
import engine.gameManager.DbManager;
|
||||
import engine.gameManager.SessionManager;
|
||||
@@ -31,8 +31,8 @@ public class VendorBuyMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
Item item = new Item(templateID);
|
||||
item.ownerID = pc.getObjectUUID();
|
||||
item.ownerType = Enum.OwnerType.PlayerCharacter;
|
||||
item.containerType = Enum.ItemContainerType.INVENTORY;
|
||||
item.ownerType = mbEnums.OwnerType.PlayerCharacter;
|
||||
item.containerType = mbEnums.ItemContainerType.INVENTORY;
|
||||
|
||||
try {
|
||||
item = DbManager.ItemQueries.PERSIST(item);
|
||||
@@ -109,7 +109,7 @@ public class VendorBuyMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
Building building = (!npc.isStatic()) ? npc.getBuilding() : null;
|
||||
|
||||
if (building != null && building.getProtectionState().equals(Enum.ProtectionState.NPC))
|
||||
if (building != null && building.getProtectionState().equals(mbEnums.ProtectionState.NPC))
|
||||
building = null;
|
||||
|
||||
int buildingDeposit = cost - me.magicValue;
|
||||
@@ -154,7 +154,7 @@ public class VendorBuyMsgHandler extends AbstractClientMsgHandler {
|
||||
|
||||
int cost = vendorItem.template.item_value;
|
||||
|
||||
if (vendorItem.flags.contains(Enum.ItemFlags.Identified) || vendorItem.isCustomValue())
|
||||
if (vendorItem.flags.contains(mbEnums.ItemFlags.Identified) || vendorItem.isCustomValue())
|
||||
cost = vendorItem.magicValue;
|
||||
|
||||
float bargain = sourcePlayer.getBargain();
|
||||
@@ -177,7 +177,7 @@ public class VendorBuyMsgHandler extends AbstractClientMsgHandler {
|
||||
Building building = (!npc.isStatic()) ? npc.getBuilding() : null;
|
||||
|
||||
if (building != null)
|
||||
if (building.getProtectionState().equals(Enum.ProtectionState.NPC))
|
||||
if (building.getProtectionState().equals(mbEnums.ProtectionState.NPC))
|
||||
building = null;
|
||||
|
||||
int buildingDeposit = cost;
|
||||
|
||||
Reference in New Issue
Block a user