Rename and clean up MapleInventoryManipulator
This commit is contained in:
@@ -27,7 +27,7 @@ import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import client.inventory.Pet;
|
||||
import client.inventory.manipulator.MapleInventoryManipulator;
|
||||
import client.inventory.manipulator.InventoryManipulator;
|
||||
import server.maps.MapleMapItem;
|
||||
import server.maps.MapleMapObject;
|
||||
import server.maps.MapleMapObjectType;
|
||||
@@ -63,8 +63,8 @@ public class ForceVacCommand extends Command {
|
||||
if (petId == -1) {
|
||||
continue;
|
||||
}
|
||||
MapleInventoryManipulator.addById(c, mapItem.getItem().getItemId(), mapItem.getItem().getQuantity(), null, petId);
|
||||
} else if (MapleInventoryManipulator.addFromDrop(c, mapItem.getItem(), true)) {
|
||||
InventoryManipulator.addById(c, mapItem.getItem().getItemId(), mapItem.getItem().getQuantity(), null, petId);
|
||||
} else if (InventoryManipulator.addFromDrop(c, mapItem.getItem(), true)) {
|
||||
if (mapItem.getItemId() == 4031868) {
|
||||
player.updateAriantScore();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ import client.command.Command;
|
||||
import client.inventory.Equip;
|
||||
import client.inventory.InventoryType;
|
||||
import client.inventory.Item;
|
||||
import client.inventory.manipulator.MapleInventoryManipulator;
|
||||
import client.inventory.manipulator.InventoryManipulator;
|
||||
import constants.inventory.ItemConstants;
|
||||
import server.MapleItemInformationProvider;
|
||||
|
||||
@@ -63,7 +63,7 @@ public class ProItemCommand extends Command {
|
||||
it.setOwner(player.getName());
|
||||
|
||||
hardsetItemStats((Equip) it, stat, spdjmp);
|
||||
MapleInventoryManipulator.addFromDrop(c, it);
|
||||
InventoryManipulator.addFromDrop(c, it);
|
||||
} else {
|
||||
player.dropMessage(6, "Make sure it's an equippable item.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user