Browse Source

mob AI testing

master
FatBoy-DOTC 2 years ago
parent
commit
b8be399df7
  1. 2
      src/engine/ai/MobileFSM.java
  2. 6
      src/engine/ai/utilities/CombatUtilities.java

2
src/engine/ai/MobileFSM.java

@ -1680,7 +1680,7 @@ public class MobileFSM { @@ -1680,7 +1680,7 @@ public class MobileFSM {
return false;
}
public static void MobCallForHelp(Mob mob) {
if(mob.nextCallForHelp > System.currentTimeMillis()){
if(mob.nextCallForHelp < System.currentTimeMillis()){
return;
}
Zone mobCamp = mob.getParentZone();

6
src/engine/ai/utilities/CombatUtilities.java

@ -334,6 +334,10 @@ public class CombatUtilities { @@ -334,6 +334,10 @@ public class CombatUtilities {
//set default values
float min = 40;
float max = 60;
if(agent.getLevel() == 85){
min = agent.getMinDamageHandOne();
max = agent.getMaxDamageHandOne();
}
float range;
float damage;
float dmgMultiplier = 1 + agent.getBonuses().getFloatPercentAll(ModType.MeleeDamageModifier, SourceType.None);
@ -378,8 +382,10 @@ public class CombatUtilities { @@ -378,8 +382,10 @@ public class CombatUtilities {
}
else{
//damage calc for regular mob
if(agent.getLevel() > 85) {
min = agent.getMobBase().getDamageMin();
max = agent.getMobBase().getMaxDmg();
}
DamageType dt = DamageType.Crush;
if(agent.getEquip().get(1) != null && agent.getEquip().get(2) == null){

Loading…
Cancel
Save