Fixed several AI bugs, listed in description

Fixed #0000061 : Houses can now be destroyed, even when not redeeding
- Added AI action regeneration when in combat
- Fixed NPC self-buffing null pointer exception
This commit is contained in:
CharonInferar
2014-07-10 22:36:58 +02:00
parent c4944bee09
commit dd64948493
6 changed files with 112 additions and 35 deletions
@@ -56,6 +56,7 @@ public class BuildingObject extends TangibleObject implements IPersistent, Seria
private Vector<Long> entryList = new Vector<Long>();
private Vector<Long> banList = new Vector<Long>();
private Vector<Long> adminList = new Vector<Long>();
private int destructionFee = 0;
public static final byte PRIVATE = (byte) 0;
public static final byte PUBLIC = (byte) 1;
@@ -427,5 +428,13 @@ public class BuildingObject extends TangibleObject implements IPersistent, Seria
return adminList.contains(creature.getObjectID());
}
public int getDestructionFee() {
return destructionFee;
}
public void setDestructionFee(int destructionFee) {
this.destructionFee = destructionFee;
}
}