Rename and clean up MapleMapEffect
This commit is contained in:
@@ -9755,7 +9755,7 @@ public class Character extends AbstractCharacterObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void startMapEffect(String msg, int itemId, int duration) {
|
public void startMapEffect(String msg, int itemId, int duration) {
|
||||||
final MapleMapEffect mapEffect = new MapleMapEffect(msg, itemId);
|
final MapEffect mapEffect = new MapEffect(msg, itemId);
|
||||||
sendPacket(mapEffect.makeStartData());
|
sendPacket(mapEffect.makeStartData());
|
||||||
TimerManager.getInstance().schedule(new Runnable() {
|
TimerManager.getInstance().schedule(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+2
-2
@@ -25,12 +25,12 @@ import client.Client;
|
|||||||
import net.packet.Packet;
|
import net.packet.Packet;
|
||||||
import tools.PacketCreator;
|
import tools.PacketCreator;
|
||||||
|
|
||||||
public class MapleMapEffect {
|
public class MapEffect {
|
||||||
private final String msg;
|
private final String msg;
|
||||||
private final int itemId;
|
private final int itemId;
|
||||||
private final boolean active = true;
|
private final boolean active = true;
|
||||||
|
|
||||||
public MapleMapEffect(String msg, int itemId) {
|
public MapEffect(String msg, int itemId) {
|
||||||
this.msg = msg;
|
this.msg = msg;
|
||||||
this.itemId = itemId;
|
this.itemId = itemId;
|
||||||
}
|
}
|
||||||
@@ -113,7 +113,7 @@ public class MapleMap {
|
|||||||
private EventInstanceManager event = null;
|
private EventInstanceManager event = null;
|
||||||
private String mapName;
|
private String mapName;
|
||||||
private String streetName;
|
private String streetName;
|
||||||
private MapleMapEffect mapEffect = null;
|
private MapEffect mapEffect = null;
|
||||||
private boolean everlast = false;
|
private boolean everlast = false;
|
||||||
private int forcedReturnMap = 999999999;
|
private int forcedReturnMap = 999999999;
|
||||||
private int timeLimit;
|
private int timeLimit;
|
||||||
@@ -2273,7 +2273,7 @@ public class MapleMap {
|
|||||||
if (mapEffect != null) {
|
if (mapEffect != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mapEffect = new MapleMapEffect(msg, itemId);
|
mapEffect = new MapEffect(msg, itemId);
|
||||||
broadcastMessage(mapEffect.makeStartData());
|
broadcastMessage(mapEffect.makeStartData());
|
||||||
|
|
||||||
Runnable r = () -> {
|
Runnable r = () -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user