Levels are now loaded in from the database, and "mainSkillLevel" properties are also correctly set.

This commit is contained in:
Filip Maj
2016-03-19 19:21:16 -04:00
parent 1f60bcf4fc
commit 335ec414d6
3 changed files with 51 additions and 22 deletions

View File

@@ -14,7 +14,7 @@ namespace FFXIVClassic_Map_Server.Actors.Chara
public short mpMax;
public byte[] state_mainSkill = new byte[4];
public ushort state_mainSkillLevel;
public short state_mainSkillLevel;
public byte[] state_boostPointForSkill = new byte[4];

View File

@@ -166,11 +166,6 @@ namespace FFXIVClassic_Map_Server.Actors
}
charaWork.battleSave.skillLevel[CLASSID_GLA - 1] = 32;
charaWork.battleSave.skillLevel[CLASSID_PUG - 1] = 50;
charaWork.battleSave.skillLevel[CLASSID_THM - 1] = 5;
charaWork.battleSave.skillLevel[CLASSID_MRD - 1] = 42;
charaWork.property[0] = 1;
charaWork.property[1] = 1;
charaWork.property[2] = 1;
@@ -876,6 +871,7 @@ namespace FFXIVClassic_Map_Server.Actors
//Set rested EXP
charaWork.parameterSave.state_mainSkill[0] = classId;
charaWork.parameterSave.state_mainSkillLevel = charaWork.battleSave.skillLevel[classId-1];
playerWork.restBonusExpRate = 0.0f;