mob work
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user