public void SetJobClass(JobClass job) { this.job = job; attributes += this.job.attributes; baseStats += this.job.stats; RecalculateStats(); }
public Player() { name = ""; id = 0; task = null; field = "Trainee Island"; job = GameData.Instance.GetJob("Novice"); skills = new List <Skill>(); baseStats = new Stats() { HP = 30, MP = 10, PATK = 1, PDEF = 0, MATK = 1, MDEF = 0, ACC = 70, EVA = 0, SPD = 0, CRIT = 0, CRITDMG = 1.1f }; level = 1; exp = 0f; attributePoints = 0; skillPoints = 0; CalculateMaxExp(); leveledUp = false; attributes = new Attributes(1); lastAttributes = attributes; equipment = new Equip[System.Enum.GetNames(typeof(EquipType)).Length]; inventory = new Inventory(30); buffs = new List <Buff>(); statuses = new List <Status>(); RecalculateStats(); currentStats = new Stats(maxStats); }