Rename and clean up MapleKite
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user