mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 14:49:03 +00:00
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user