Browse Source

bane commander NPC

lakebane2
FatBoy-DOTC 1 month ago
parent
commit
05f555b5b5
  1. 2
      src/engine/gameManager/BuildingManager.java
  2. 2
      src/engine/objects/Bane.java

2
src/engine/gameManager/BuildingManager.java

@ -445,6 +445,8 @@ public enum BuildingManager { @@ -445,6 +445,8 @@ public enum BuildingManager {
if(banedCity != null){
if(banedCity.getGuild().getNation().equals(playerNation)){
return false;
}else{
return true;
}
}
}

2
src/engine/objects/Bane.java

@ -281,6 +281,8 @@ public final class Bane { @@ -281,6 +281,8 @@ public final class Bane {
baneCommander = NPC.createNPC("Bane Commander", contractID, spawnLoc, bane.getCity().getGuild(), ZoneManager.findSmallestZone(bane.getStone().loc), (short) 70, bane.getStone());
baneCommander.setLoc(spawnLoc);
baneCommander.setGuild(bane.getCity().getGuild());
WorldGrid.addObject(baneCommander,spawnLoc.x, spawnLoc.z);
WorldGrid.updateObject(baneCommander);
}
else
{

Loading…
Cancel
Save