@ -45,8 +42,8 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@@ -45,8 +42,8 @@ public class dbPlayerCharacterHandler extends dbHandlerBase {
@ -73,7 +70,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@@ -73,7 +70,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@ -66,7 +66,7 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@@ -66,7 +66,7 @@ public class ChangeRankHandler extends AbstractClientMsgHandler {
@ -376,14 +376,14 @@ public class VendorDialogMsgHandler extends AbstractClientMsgHandler {
@@ -376,14 +376,14 @@ public class VendorDialogMsgHandler extends AbstractClientMsgHandler {
@ -97,28 +98,29 @@ public class CharacterPower extends AbstractGameObject {
@@ -97,28 +98,29 @@ public class CharacterPower extends AbstractGameObject {
@ -242,9 +244,11 @@ public class CharacterPower extends AbstractGameObject {
@@ -242,9 +244,11 @@ public class CharacterPower extends AbstractGameObject {
@ -526,13 +530,13 @@ public class CharacterPower extends AbstractGameObject {
@@ -526,13 +530,13 @@ public class CharacterPower extends AbstractGameObject {
@ -585,13 +589,13 @@ public class CharacterPower extends AbstractGameObject {
@@ -585,13 +589,13 @@ public class CharacterPower extends AbstractGameObject {
@ -378,7 +378,7 @@ public class CharacterSkill extends AbstractGameObject {
@@ -378,7 +378,7 @@ public class CharacterSkill extends AbstractGameObject {
if(pc==null)
return0;
if(pc.getRace()==null||pc.getBaseClass()==null){
if(pc.race==null||pc.baseClass==null){
Logger.error("Race or BaseClass not found for player "+pc.getObjectUUID());
return0;
}
@ -388,12 +388,12 @@ public class CharacterSkill extends AbstractGameObject {
@@ -388,12 +388,12 @@ public class CharacterSkill extends AbstractGameObject {
@ -480,24 +480,26 @@ public class CharacterSkill extends AbstractGameObject {
@@ -480,24 +480,26 @@ public class CharacterSkill extends AbstractGameObject {
@ -99,12 +99,7 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -99,12 +99,7 @@ public class PlayerCharacter extends AbstractCharacter {
publicshortstatIntMin;
publicshortstatSpiMin;
// Current Stats before Equip and Effect
// Modifiers
publicshortstatStrBase;
publicshortstatDexBase;
publicshortstatConBase;
publicshortstatIntBase;
publicshortstatSpiBase;
publicshorttrainedStatPoints=0;
publicbooleanisCSR=false;
//TODO Public fields break OO!!!
@ -117,8 +112,8 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -117,8 +112,8 @@ public class PlayerCharacter extends AbstractCharacter {
@ -1342,7 +1337,7 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -1342,7 +1337,7 @@ public class PlayerCharacter extends AbstractCharacter {
//calculate ATR, damage and defense
pc.calculateAtrDefenseDamage();
AbstractCharacter.calculateAtrDefenseDamage(pc);
//calculate movement bonus
pc.calculateSpeedMod();
@ -1369,12 +1364,6 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -1369,12 +1364,6 @@ public class PlayerCharacter extends AbstractCharacter {
@ -2116,9 +2105,7 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -2116,9 +2105,7 @@ public class PlayerCharacter extends AbstractCharacter {
/**
*@returntherace
*/
publicRacegetRace(){
returnrace;
}
publicintgetRaceID(){
if(race!=null)
@ -2129,9 +2116,7 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -2129,9 +2116,7 @@ public class PlayerCharacter extends AbstractCharacter {
/**
*@returnthebaseClass
*/
publicBaseClassgetBaseClass(){
returnbaseClass;
}
publicintgetBaseClassID(){
if(baseClass!=null)
@ -3359,7 +3344,7 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -3359,7 +3344,7 @@ public class PlayerCharacter extends AbstractCharacter {
//calculate ATR, damage and defense
calculateAtrDefenseDamage();
calculateAtrDefenseDamage(this);
//calculate movement bonus
calculateSpeedMod();
@ -3779,344 +3764,6 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -3779,344 +3764,6 @@ public class PlayerCharacter extends AbstractCharacter {
@ -4153,134 +3800,15 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -4153,134 +3800,15 @@ public class PlayerCharacter extends AbstractCharacter {
//TODO add effect bonuses in here for equipped items
}
}
/**
*@DefaultsATR,DefenseandDamageforplayer
*/
privatevoiddefaultAtrAndDamage(booleanmainHand){
if(mainHand){
this.atrHandOne=0;
this.minDamageHandOne=0;
this.maxDamageHandOne=0;
this.rangeHandOne=-1;
this.speedHandOne=20;
}else{
this.atrHandTwo=0;
this.minDamageHandTwo=0;
this.maxDamageHandTwo=0;
this.rangeHandTwo=-1;
this.speedHandTwo=20;
}
}
publicvoidcalculateMaxHealthManaStamina(){
floath=1f;
floatm=0f;
@ -4431,36 +3959,6 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -4431,36 +3959,6 @@ public class PlayerCharacter extends AbstractCharacter {
@ -4475,40 +3973,6 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -4475,40 +3973,6 @@ public class PlayerCharacter extends AbstractCharacter {
return!this.isAlive();
}
publicvoidResetLevel(shorttargetLevel){
if(targetLevel>13){
ChatManager.chatSystemError(this,"Please choose a level between 1 and 13.");
ChatManager.chatSystemInfo(this,"Character reset to "+targetLevel+". All training points have been refunded. Relog to update changes on client.");
}
@Override
publicvoidremoveFromCache(){
Logger.info("Removing "+this.getName()+" from Object Cache.");
@ -4545,10 +4009,6 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -4545,10 +4009,6 @@ public class PlayerCharacter extends AbstractCharacter {
super.removeFromCache();
}
publicvoidstoreIgnoreListDB(){
}
publicvoidupdateSkillsAndPowersToDatabase(){
if(this.skills!=null)
for(CharacterSkillskill:this.skills.values()){
@ -4572,11 +4032,11 @@ public class PlayerCharacter extends AbstractCharacter {
@@ -4572,11 +4032,11 @@ public class PlayerCharacter extends AbstractCharacter {