forked from MagicBane/Server
removed duplicate variables in MobBase
This commit is contained in:
+14
-14
@@ -1125,14 +1125,14 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.atrHandOne = (short) this.mobBase.getAttackRating();
|
this.atrHandOne = (short) this.mobBase.getAttackRating();
|
||||||
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;
|
||||||
|
|
||||||
this.atrHandTwo = (short) this.mobBase.getAttackRating();
|
this.atrHandTwo = (short) this.mobBase.getAttackRating();
|
||||||
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;
|
||||||
|
|
||||||
@@ -1150,8 +1150,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
this.atrHandOne = (short) this.mobBase.getAttackRating();
|
this.atrHandOne = (short) this.mobBase.getAttackRating();
|
||||||
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());
|
||||||
@@ -1163,8 +1163,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
||||||
this.atrHandTwo = (short) this.mobBase.getAttackRating();
|
this.atrHandTwo = (short) this.mobBase.getAttackRating();
|
||||||
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());
|
||||||
@@ -1208,7 +1208,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
this.defenseRating = (short) (defense + 0.5f);
|
this.defenseRating = (short) (defense + 0.5f);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. Setting to Default Defense." + e.getMessage());
|
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. Setting to Default Defense." + e.getMessage());
|
||||||
this.defenseRating = (short) this.mobBase.getDefense();
|
this.defenseRating = (short) this.mobBase.getDefenseRating();
|
||||||
}
|
}
|
||||||
// calculate defense for equipment
|
// calculate defense for equipment
|
||||||
}
|
}
|
||||||
@@ -1359,8 +1359,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
mastDam = masteryPercentage;
|
mastDam = masteryPercentage;
|
||||||
|
|
||||||
// TODO Correct these
|
// TODO Correct these
|
||||||
min = this.mobBase.getMinDmg();
|
min = this.mobBase.getDamageMin();
|
||||||
max = this.mobBase.getMaxDmg();
|
max = this.mobBase.getDamageMax();
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (mainHand)
|
if (mainHand)
|
||||||
@@ -1616,11 +1616,11 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
//TODO set these correctly later
|
//TODO set these correctly later
|
||||||
this.rangeHandOne = this.mobBase.getAttackRange();
|
this.rangeHandOne = this.mobBase.getAttackRange();
|
||||||
this.rangeHandTwo = -1;
|
this.rangeHandTwo = -1;
|
||||||
this.minDamageHandOne = (int) this.mobBase.getMinDmg();
|
this.minDamageHandOne = (int) this.mobBase.getDamageMin();
|
||||||
this.maxDamageHandOne = (int) this.mobBase.getMaxDmg();
|
this.maxDamageHandOne = (int) this.mobBase.getDamageMax();
|
||||||
this.minDamageHandTwo = 0;
|
this.minDamageHandTwo = 0;
|
||||||
this.maxDamageHandTwo = 0;
|
this.maxDamageHandTwo = 0;
|
||||||
this.atrHandOne = this.mobBase.getAtr();
|
this.atrHandOne = this.mobBase.getAttackRating();
|
||||||
this.defenseRating = (short) this.mobBase.getDefenseRating();
|
this.defenseRating = (short) this.mobBase.getDefenseRating();
|
||||||
this.isActive = true;
|
this.isActive = true;
|
||||||
|
|
||||||
|
|||||||
@@ -43,10 +43,6 @@ public class MobBase extends AbstractGameObject {
|
|||||||
private int goldMod;
|
private int goldMod;
|
||||||
private int seeInvis;
|
private int seeInvis;
|
||||||
private int spawnTime = 0;
|
private int spawnTime = 0;
|
||||||
private int defense = 0;
|
|
||||||
private int atr = 0;
|
|
||||||
private float minDmg = 0;
|
|
||||||
private float maxDmg = 0;
|
|
||||||
private float attackRange;
|
private float attackRange;
|
||||||
private boolean isNecroPet = false;
|
private boolean isNecroPet = false;
|
||||||
private MobBaseStats mobBaseStats;
|
private MobBaseStats mobBaseStats;
|
||||||
@@ -248,30 +244,6 @@ public class MobBase extends AbstractGameObject {
|
|||||||
return mobBaseStats;
|
return mobBaseStats;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getMaxDmg() {
|
|
||||||
return maxDmg;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float getMinDmg() {
|
|
||||||
return minDmg;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getAtr() {
|
|
||||||
return atr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAtr(int atr) {
|
|
||||||
this.atr = atr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getDefense() {
|
|
||||||
return defense;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDefense(int defense) {
|
|
||||||
this.defense = defense;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float getAttackRange() {
|
public float getAttackRange() {
|
||||||
return attackRange;
|
return attackRange;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user