Browse Source

mob work

lakebane
FatBoy-DOTC 9 hours ago
parent
commit
9ec95b974f
  1. 2
      src/engine/mobileAI/utilities/CombatUtilities.java
  2. 8
      src/engine/objects/Mob.java
  3. 2
      src/engine/objects/MobBase.java

2
src/engine/mobileAI/utilities/CombatUtilities.java

@ -143,7 +143,7 @@ public class CombatUtilities {
int atr = agent.mobBase.getAtr(); int atr = agent.mobBase.getAtr();
if(agent.getBonuses() != null){ if(agent.getBonuses() != null){
atr += agent.getBonuses().getFloat(ModType.OCV,SourceType.None); atr += agent.getBonuses().getFloat(ModType.OCV,SourceType.None);
atr *= agent.getBonuses().getFloatPercentAll(ModType.OCV,SourceType.None); atr *= 1 + agent.getBonuses().getFloatPercentAll(ModType.OCV,SourceType.None);
} }
switch (target.getObjectType()) { switch (target.getObjectType()) {
case PlayerCharacter: case PlayerCharacter:

8
src/engine/objects/Mob.java

@ -1652,8 +1652,8 @@ public class Mob extends AbstractIntelligenceAgent {
} catch (Exception e) { } catch (Exception e) {
this.atrHandOne = GetAttackRating(this.mobBase.getAttackRating(), this); this.atrHandOne = GetAttackRating(this.mobBase.getAttackRating(), this);
this.minDamageHandOne = (short) this.mobBase.getMinDmg(); this.minDamageHandOne = (short) this.mobBase.getDamageMin();
this.maxDamageHandOne = (short) this.mobBase.getMaxDmg(); this.maxDamageHandOne = (short) this.mobBase.getDamageMax();
this.rangeHandOne = 6.5f; this.rangeHandOne = 6.5f;
this.speedHandOne = 20; this.speedHandOne = 20;
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage()); Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage());
@ -1665,8 +1665,8 @@ public class Mob extends AbstractIntelligenceAgent {
} catch (Exception e) { } catch (Exception e) {
this.atrHandTwo = GetAttackRating(this.mobBase.getAttackRating(), this); this.atrHandTwo = GetAttackRating(this.mobBase.getAttackRating(), this);
this.minDamageHandTwo = (short) this.mobBase.getMinDmg(); this.minDamageHandTwo = (short) this.mobBase.getDamageMin();
this.maxDamageHandTwo = (short) this.mobBase.getMaxDmg(); this.maxDamageHandTwo = (short) this.mobBase.getDamageMax();
this.rangeHandTwo = 6.5f; this.rangeHandTwo = 6.5f;
this.speedHandTwo = 20; this.speedHandTwo = 20;
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage()); Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage());

2
src/engine/objects/MobBase.java

@ -260,7 +260,7 @@ public class MobBase extends AbstractGameObject {
} }
public int getAtr() { public int getAtr() {
return atr; return attackRating;
} }
public void setAtr(int atr) { public void setAtr(int atr) {

Loading…
Cancel
Save