Rename and clean up MapleKite
This commit is contained in:
@@ -339,7 +339,7 @@ public final class UseCashItemHandler extends AbstractPacketHandler {
|
|||||||
}
|
}
|
||||||
remove(c, position, itemId);
|
remove(c, position, itemId);
|
||||||
} else if (itemType == 508) { // thanks tmskdl12 for graduation banner; thanks ratency for first pointing lack of Kite handling
|
} 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())) {
|
if (!GameConstants.isFreeMarketRoom(player.getMapId())) {
|
||||||
player.getMap().spawnKite(kite);
|
player.getMap().spawnKite(kite);
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ import tools.PacketCreator;
|
|||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
|
|
||||||
public class MapleKite extends AbstractMapObject {
|
public class Kite extends AbstractMapObject {
|
||||||
private final Point pos;
|
private final Point pos;
|
||||||
private final Character owner;
|
private final Character owner;
|
||||||
private final String text;
|
private final String text;
|
||||||
private final int ft;
|
private final int ft;
|
||||||
private final int itemid;
|
private final int itemid;
|
||||||
|
|
||||||
public MapleKite(Character owner, String text, int itemId) {
|
public Kite(Character owner, String text, int itemId) {
|
||||||
this.owner = owner;
|
this.owner = owner;
|
||||||
this.pos = owner.getPosition();
|
this.pos = owner.getPosition();
|
||||||
this.ft = owner.getFh();
|
this.ft = owner.getFh();
|
||||||
@@ -2113,7 +2113,7 @@ public class MapleMap {
|
|||||||
service.registerMobMistCancelAction(mapid, mistSchedule, duration);
|
service.registerMobMistCancelAction(mapid, mistSchedule, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void spawnKite(final MapleKite kite) {
|
public void spawnKite(final Kite kite) {
|
||||||
addMapObject(kite);
|
addMapObject(kite);
|
||||||
broadcastMessage(kite.makeSpawnData());
|
broadcastMessage(kite.makeSpawnData());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user