Rename and clean up MapleKite

This commit is contained in:
P0nk
2021-09-09 22:22:58 +02:00
parent d35969dea5
commit a61dfab64f
3 changed files with 4 additions and 4 deletions

View File

@@ -339,7 +339,7 @@ public final class UseCashItemHandler extends AbstractPacketHandler {
}
remove(c, position, itemId);
} else if (itemType == 508) { // thanks tmskdl12 for graduation banner; thanks ratency for first pointing lack of Kite handling
MapleKite kite = new MapleKite(player, p.readString(), itemId);
Kite kite = new Kite(player, p.readString(), itemId);
if (!GameConstants.isFreeMarketRoom(player.getMapId())) {
player.getMap().spawnKite(kite);

View File

@@ -7,14 +7,14 @@ import tools.PacketCreator;
import java.awt.*;
public class MapleKite extends AbstractMapObject {
public class Kite extends AbstractMapObject {
private final Point pos;
private final Character owner;
private final String text;
private final int ft;
private final int itemid;
public MapleKite(Character owner, String text, int itemId) {
public Kite(Character owner, String text, int itemId) {
this.owner = owner;
this.pos = owner.getPosition();
this.ft = owner.getFh();

View File

@@ -2113,7 +2113,7 @@ public class MapleMap {
service.registerMobMistCancelAction(mapid, mistSchedule, duration);
}
public void spawnKite(final MapleKite kite) {
public void spawnKite(final Kite kite) {
addMapObject(kite);
broadcastMessage(kite.makeSpawnData());