Turn item 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 client.inventory.Item;
|
||||
import constants.id.ItemId;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
@@ -43,7 +44,8 @@ public class SeedCommand extends Command {
|
||||
return;
|
||||
}
|
||||
Point[] pos = {new Point(7, -207), new Point(179, -447), new Point(-3, -687), new Point(-357, -687), new Point(-538, -447), new Point(-359, -207)};
|
||||
int[] seed = {4001097, 4001096, 4001095, 4001100, 4001099, 4001098};
|
||||
int[] seed = {ItemId.PINK_PRIMROSE_SEED, ItemId.PURPLE_PRIMROSE_SEED, ItemId.GREEN_PRIMROSE_SEED,
|
||||
ItemId.BLUE_PRIMROSE_SEED, ItemId.YELLOW_PRIMROSE_SEED, ItemId.BROWN_PRIMROSE_SEED};
|
||||
for (int i = 0; i < pos.length; i++) {
|
||||
Item item = new Item(seed[i], (byte) 0, (short) 1);
|
||||
player.getMap().spawnItemDrop(player, player, item, pos[i], false, true);
|
||||
|
||||
Reference in New Issue
Block a user