location sync and def formula
This commit is contained in:
@@ -5112,8 +5112,12 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
@Override
|
@Override
|
||||||
public void update(Boolean newSystem) {
|
public void update(Boolean newSystem) {
|
||||||
|
|
||||||
|
this.updateLocation();
|
||||||
|
this.updateMovementState();
|
||||||
|
|
||||||
if(!newSystem)
|
if(!newSystem)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (this.updateLock.writeLock().tryLock()) {
|
if (this.updateLock.writeLock().tryLock()) {
|
||||||
@@ -5125,7 +5129,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
forceRespawn(this);
|
forceRespawn(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.updateLocation();
|
|
||||||
if (this.isAlive() && this.isActive && this.enteredWorld) {
|
if (this.isAlive() && this.isActive && this.enteredWorld) {
|
||||||
|
|
||||||
this.updateMovementState();
|
this.updateMovementState();
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ public class PlayerCombatStats {
|
|||||||
}
|
}
|
||||||
for(String armorUsed : armorsUsed){
|
for(String armorUsed : armorsUsed){
|
||||||
if(this.owner.skills.containsKey(armorUsed)) {
|
if(this.owner.skills.containsKey(armorUsed)) {
|
||||||
armorSkill += this.owner.skills.get(armorUsed).getModifiedAmount();//calculateBuffedSkillLevel(armorUsed,this.owner);
|
armorSkill += this.owner.skills.get(armorUsed).getTotalSkillPercet();//calculateBuffedSkillLevel(armorUsed,this.owner);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(armorsUsed.size() > 0)
|
if(armorsUsed.size() > 0)
|
||||||
@@ -572,10 +572,10 @@ public class PlayerCombatStats {
|
|||||||
masteryName = weapon.getItemBase().getMastery();
|
masteryName = weapon.getItemBase().getMastery();
|
||||||
}
|
}
|
||||||
if(this.owner.skills.containsKey(skillName))
|
if(this.owner.skills.containsKey(skillName))
|
||||||
weaponSkill = this.owner.skills.get(skillName).getModifiedAmount();//calculateBuffedSkillLevel(skillName,this.owner);//this.owner.skills.get(skillName).getModifiedAmount();//calculateModifiedSkill(skillName,this.owner);//this.owner.skills.get(skillName).getModifiedAmount();
|
weaponSkill = this.owner.skills.get(skillName).getTotalSkillPercet();//calculateBuffedSkillLevel(skillName,this.owner);//this.owner.skills.get(skillName).getModifiedAmount();//calculateModifiedSkill(skillName,this.owner);//this.owner.skills.get(skillName).getModifiedAmount();
|
||||||
|
|
||||||
if(this.owner.skills.containsKey(masteryName))
|
if(this.owner.skills.containsKey(masteryName))
|
||||||
masterySkill = this.owner.skills.get(masteryName).getModifiedAmount();//calculateBuffedSkillLevel(masteryName,this.owner);//this.owner.skills.get(masteryName).getModifiedAmount();//calculateModifiedSkill(masteryName,this.owner);//this.owner.skills.get(masteryName).getModifiedAmount();
|
masterySkill = this.owner.skills.get(masteryName).getTotalSkillPercet();//calculateBuffedSkillLevel(masteryName,this.owner);//this.owner.skills.get(masteryName).getModifiedAmount();//calculateModifiedSkill(masteryName,this.owner);//this.owner.skills.get(masteryName).getModifiedAmount();
|
||||||
|
|
||||||
float dexterity = getDexAfterPenalty(this.owner);
|
float dexterity = getDexAfterPenalty(this.owner);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user