This commit is contained in:
2025-01-18 16:06:38 -06:00
parent 49ea9e50cf
commit 9ec95b974f
3 changed files with 6 additions and 6 deletions
@@ -143,7 +143,7 @@ public class CombatUtilities {
int atr = agent.mobBase.getAtr();
if(agent.getBonuses() != null){
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()) {
case PlayerCharacter:
+4 -4
View File
@@ -1652,8 +1652,8 @@ public class Mob extends AbstractIntelligenceAgent {
} catch (Exception e) {
this.atrHandOne = GetAttackRating(this.mobBase.getAttackRating(), this);
this.minDamageHandOne = (short) this.mobBase.getMinDmg();
this.maxDamageHandOne = (short) this.mobBase.getMaxDmg();
this.minDamageHandOne = (short) this.mobBase.getDamageMin();
this.maxDamageHandOne = (short) this.mobBase.getDamageMax();
this.rangeHandOne = 6.5f;
this.speedHandOne = 20;
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) {
this.atrHandTwo = GetAttackRating(this.mobBase.getAttackRating(), this);
this.minDamageHandTwo = (short) this.mobBase.getMinDmg();
this.maxDamageHandTwo = (short) this.mobBase.getMaxDmg();
this.minDamageHandTwo = (short) this.mobBase.getDamageMin();
this.maxDamageHandTwo = (short) this.mobBase.getDamageMax();
this.rangeHandTwo = 6.5f;
this.speedHandTwo = 20;
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage());
+1 -1
View File
@@ -260,7 +260,7 @@ public class MobBase extends AbstractGameObject {
}
public int getAtr() {
return atr;
return attackRating;
}
public void setAtr(int atr) {