forked from MagicBane/Server
Project reformat.
This commit is contained in:
@@ -1013,7 +1013,7 @@ public class CharacterSkill extends AbstractGameObject {
|
||||
}
|
||||
|
||||
public void calculateMobBaseAmount(boolean isGuard) {
|
||||
if(!isGuard) {
|
||||
if (!isGuard) {
|
||||
if (CharacterSkill.GetOwner(this) == null) {
|
||||
Logger.error("owner not found for owner uuid : " + this.ownerUID);
|
||||
this.baseAmount = 1;
|
||||
@@ -1037,23 +1037,23 @@ public class CharacterSkill extends AbstractGameObject {
|
||||
//Get bonuses from runes
|
||||
bonus = CharacterSkill.GetOwner(this).getBonuses().getSkillBonus(this.skillsBase.sourceType);
|
||||
|
||||
//Get Base skill for unmodified stats
|
||||
//Get Base skill for unmodified stats
|
||||
|
||||
|
||||
if (this.skillsBase.getStrMod() > 0)
|
||||
statMod += (float) this.skillsBase.getStrMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseStr() / 100f;
|
||||
if (this.skillsBase.getDexMod() > 0)
|
||||
statMod += (float) this.skillsBase.getDexMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseDex() / 100f;
|
||||
if (this.skillsBase.getConMod() > 0)
|
||||
statMod += (float) this.skillsBase.getConMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseCon() / 100f;
|
||||
if (this.skillsBase.getIntMod() > 0)
|
||||
statMod += (float) this.skillsBase.getIntMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseInt() / 100f;
|
||||
if (this.skillsBase.getSpiMod() > 0)
|
||||
statMod += (float) this.skillsBase.getSpiMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseSpi() / 100f;
|
||||
if (statMod < 1)
|
||||
statMod = 1f;
|
||||
else if (statMod > 600)
|
||||
statMod = 600f;
|
||||
if (this.skillsBase.getStrMod() > 0)
|
||||
statMod += (float) this.skillsBase.getStrMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseStr() / 100f;
|
||||
if (this.skillsBase.getDexMod() > 0)
|
||||
statMod += (float) this.skillsBase.getDexMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseDex() / 100f;
|
||||
if (this.skillsBase.getConMod() > 0)
|
||||
statMod += (float) this.skillsBase.getConMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseCon() / 100f;
|
||||
if (this.skillsBase.getIntMod() > 0)
|
||||
statMod += (float) this.skillsBase.getIntMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseInt() / 100f;
|
||||
if (this.skillsBase.getSpiMod() > 0)
|
||||
statMod += (float) this.skillsBase.getSpiMod() * (float) ((Mob) CharacterSkill.GetOwner(this)).getMobBase().getMobBaseStats().getBaseSpi() / 100f;
|
||||
if (statMod < 1)
|
||||
statMod = 1f;
|
||||
else if (statMod > 600)
|
||||
statMod = 600f;
|
||||
}
|
||||
base += CharacterSkill.baseSkillValues[(int) statMod];
|
||||
|
||||
@@ -1065,7 +1065,7 @@ public class CharacterSkill extends AbstractGameObject {
|
||||
}
|
||||
|
||||
public void calculateModifiedAmount(boolean isGuard) {
|
||||
if(!isGuard) {
|
||||
if (!isGuard) {
|
||||
if (CharacterSkill.GetOwner(this) == null || this.skillsBase == null) {
|
||||
Logger.error("owner or SkillsBase not found for skill " + this.getObjectUUID());
|
||||
this.baseAmount = 1;
|
||||
|
||||
Reference in New Issue
Block a user