This commit is contained in:
Simon
2018-11-27 16:02:21 -05:00
parent 54ed05b86c
commit 3776070689
18 changed files with 36 additions and 88 deletions

View File

@@ -16,6 +16,7 @@ import java.util.ArrayList;
*/
public class ElectricBox extends GameObject implements Updatable, Attackable {
private static final char MAP_INFO = 0x0301;
/**
* Hit points
*/
@@ -98,7 +99,7 @@ public class ElectricBox extends GameObject implements Updatable, Attackable {
@Override
public char getMapInfo() {
return Obstacle.MAP_INFO;
return MAP_INFO;
}
/**

View File

@@ -15,7 +15,7 @@ import java.util.List;
*/
public class Factory extends Structure implements Updatable {
private static final int MAP_INFO = 0x0200;
private static final int MAP_INFO = 0x0401;
/**
* Maximum number of NonPlayerCharacters assigned to this Factory

View File

@@ -12,7 +12,6 @@ public class HarvesterNPC extends NonPlayerCharacter {
public static final int MAX_HEALTH = GameServer.INSTANCE.getConfig().getInt("harvester_hp_max");
public static final int HEAL_RATE = GameServer.INSTANCE.getConfig().getInt("harvester_regen");
public HarvesterNPC() {
setTask(new HarvestTask());

View File

@@ -15,7 +15,7 @@ import java.util.ArrayList;
*/
public abstract class NonPlayerCharacter extends GameObject implements Updatable, Attackable {
private static final int MAP_INFO = 0x0040;
private static final char MAP_INFO = 0x0501;
/**
* Maximum distance to travel from its factory, in Worlds

View File

@@ -10,7 +10,7 @@ import org.json.simple.JSONObject;
*/
public class Obstacle extends GameObject implements Attackable {
public static final int MAP_INFO = 0x0400;
public static final int MAP_INFO = 0x0701;
/**
* Style of the obstacle. Will tell the client which sprite to display

View File

@@ -17,7 +17,7 @@ public class Portal extends Structure implements Enterable {
*/
private Location destination;
public static final int MAP_INFO = 0x0020;
public static final int MAP_INFO = 0x0801;
public Portal() {
super(1, 1);

View File

@@ -12,7 +12,7 @@ import java.util.ArrayList;
public class RadioTower extends Structure implements MessageReceiver, Updatable {
private static final int MAP_INFO = 0x1000;
private static final int MAP_INFO = 0x0901;
public static final int MAX_RANGE = GameServer.INSTANCE.getConfig().getInt("radio_tower_range");

View File

@@ -12,7 +12,7 @@ import java.util.Arrays;
public class VaultDoor extends Structure implements MessageReceiver, Enterable, Updatable {
private static final int MAP_INFO = 0x0800;
private static final int MAP_INFO = 0x0B00;
/**
* Password to open the vault door

View File

@@ -29,9 +29,7 @@ public class VaultExitPortal extends Portal {
@Override
public boolean enter(GameObject object) {
//TODO: Trigger vault complete event instead
return super.enter(object);
}
}