Turn npc id magic numbers into constants
This commit is contained in:
@@ -27,6 +27,7 @@ import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import constants.game.GameConstants;
|
||||
import constants.id.NpcId;
|
||||
import server.maps.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -80,7 +81,7 @@ public class GotoCommand extends Command {
|
||||
sendStr += ("\r\n#rAreas:#k\r\n" + GOTO_AREAS_INFO);
|
||||
}
|
||||
|
||||
player.getAbstractPlayerInteraction().npcTalk(9000020, sendStr);
|
||||
player.getAbstractPlayerInteraction().npcTalk(NpcId.SPINEL, sendStr);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -118,7 +119,7 @@ public class GotoCommand extends Command {
|
||||
sendStr += ("\r\n#rAreas:#k\r\n" + GOTO_AREAS_INFO);
|
||||
}
|
||||
|
||||
player.getAbstractPlayerInteraction().npcTalk(9000020, sendStr);
|
||||
player.getAbstractPlayerInteraction().npcTalk(NpcId.SPINEL, sendStr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user