Remove "Maple" prefix from MaplePacketCreator name

This commit is contained in:
P0nk
2021-08-19 21:31:57 +02:00
parent 579e3c639f
commit e184f25184
307 changed files with 2285 additions and 2328 deletions

View File

@@ -28,7 +28,7 @@ import client.inventory.MaplePet;
import client.inventory.manipulator.MapleInventoryManipulator;
import constants.inventory.ItemConstants;
import tools.DatabaseConnection;
import tools.MaplePacketCreator;
import tools.PacketCreator;
import java.sql.Connection;
import java.sql.PreparedStatement;
@@ -76,7 +76,7 @@ public class MapleShop {
public void sendShop(MapleClient c) {
c.getPlayer().setShop(this);
c.announce(MaplePacketCreator.getNPCShop(c, getNpcId(), items));
c.announce(PacketCreator.getNPCShop(c, getNpcId(), items));
}
public void buy(MapleClient c, short slot, int itemId, short quantity) {
@@ -103,12 +103,12 @@ public class MapleShop {
MapleInventoryManipulator.addById(c, itemId, quantity, "", -1);
c.getPlayer().gainMeso(-item.getPrice(), false);
}
c.announce(MaplePacketCreator.shopTransaction((byte) 0));
c.announce(PacketCreator.shopTransaction((byte) 0));
} else
c.announce(MaplePacketCreator.shopTransaction((byte) 3));
c.announce(PacketCreator.shopTransaction((byte) 3));
} else
c.announce(MaplePacketCreator.shopTransaction((byte) 2));
c.announce(PacketCreator.shopTransaction((byte) 2));
} else if (item.getPitch() > 0) {
int amount = (int)Math.min((float) item.getPitch() * quantity, Integer.MAX_VALUE);
@@ -124,9 +124,9 @@ public class MapleShop {
MapleInventoryManipulator.addById(c, itemId, quantity, "", -1);
MapleInventoryManipulator.removeById(c, MapleInventoryType.ETC, 4310000, amount, false, false);
}
c.announce(MaplePacketCreator.shopTransaction((byte) 0));
c.announce(PacketCreator.shopTransaction((byte) 0));
} else
c.announce(MaplePacketCreator.shopTransaction((byte) 3));
c.announce(PacketCreator.shopTransaction((byte) 3));
}
} else if (c.getPlayer().getInventory(MapleInventoryType.CASH).countById(token) != 0) {
@@ -145,11 +145,11 @@ public class MapleShop {
}
c.getPlayer().gainMeso(diff, false);
} else {
c.announce(MaplePacketCreator.shopTransaction((byte) 3));
c.announce(PacketCreator.shopTransaction((byte) 3));
}
c.announce(MaplePacketCreator.shopTransaction((byte) 0));
c.announce(PacketCreator.shopTransaction((byte) 0));
} else {
c.announce(MaplePacketCreator.shopTransaction((byte) 2));
c.announce(PacketCreator.shopTransaction((byte) 2));
}
}
}
@@ -203,9 +203,9 @@ public class MapleShop {
if (recvMesos > 0) {
c.getPlayer().gainMeso(recvMesos, false);
}
c.announce(MaplePacketCreator.shopTransaction((byte) 0x8));
c.announce(PacketCreator.shopTransaction((byte) 0x8));
} else {
c.announce(MaplePacketCreator.shopTransaction((byte) 0x5));
c.announce(PacketCreator.shopTransaction((byte) 0x5));
}
}
@@ -225,9 +225,9 @@ public class MapleShop {
item.setQuantity(slotMax);
c.getPlayer().forceUpdateItem(item);
c.getPlayer().gainMeso(-price, false, true, false);
c.announce(MaplePacketCreator.shopTransaction((byte) 0x8));
c.announce(PacketCreator.shopTransaction((byte) 0x8));
} else {
c.announce(MaplePacketCreator.shopTransaction((byte) 0x2));
c.announce(PacketCreator.shopTransaction((byte) 0x2));
}
}
}