Browse Source

new stat calculations

lakebane-dex-penalty
FatBoy-DOTC 1 week ago
parent
commit
441771839a
  1. 4
      src/engine/gameManager/PowersManager.java
  2. 1
      src/engine/mobileAI/MobAI.java
  3. 1
      src/engine/objects/Mob.java

4
src/engine/gameManager/PowersManager.java

@ -10,6 +10,7 @@ package engine.gameManager; @@ -10,6 +10,7 @@ package engine.gameManager;
import engine.Enum.*;
import engine.InterestManagement.HeightMap;
import engine.InterestManagement.InterestManager;
import engine.InterestManagement.WorldGrid;
import engine.db.handlers.dbEffectsBaseHandler;
import engine.db.handlers.dbPowerHandler;
@ -197,7 +198,8 @@ public enum PowersManager { @@ -197,7 +198,8 @@ public enum PowersManager {
msg.setUnknown04(1);
if (useMobPowerA(msg, caster)) {
//sendMobPowerMsg(caster,2,msg); //Lol wtf was i thinking sending msg's to mobs... ZZZZ
if(pb.token == -1994153779)
InterestManager.setObjectDirty(caster);
}
}

1
src/engine/mobileAI/MobAI.java

@ -964,7 +964,6 @@ public class MobAI { @@ -964,7 +964,6 @@ public class MobAI {
PowersBase recall = PowersManager.getPowerByToken(-1994153779);
PowersManager.useMobPower(mob, mob, recall, 40);
mob.setCombatTarget(null);
if (mob.BehaviourType.ordinal() == Enum.MobBehaviourType.GuardCaptain.ordinal() && mob.isAlive()) {
//guard captain pulls his minions home with him

1
src/engine/objects/Mob.java

@ -1444,6 +1444,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1444,6 +1444,7 @@ public class Mob extends AbstractIntelligenceAgent {
this.updateLocation();
this.stopPatrolTime = 0;
this.lastPatrolPointIndex = 0;
InterestManager.setObjectDirty(this);
}
public void despawn() {

Loading…
Cancel
Save