private void _statskillReset(StatResetData data) { Character c; (c = World.Instance.MainPlayer.ActiveCharacter).Spells.Clear(); EODialog.Show(DATCONST1.SKILL_RESET_CHARACTER_COMPLETE, XNADialogButtons.Ok, EODialogStyle.SmallDialogSmallHeader); c.Stats.statpoints = data.StatPoints; c.Stats.skillpoints = data.SkillPoints; c.Stats.SetHP(data.HP); c.Stats.SetMaxHP(data.MaxHP); c.Stats.SetTP(data.TP); c.Stats.SetMaxTP(data.MaxTP); c.Stats.SetMaxSP(data.MaxSP); c.Stats.SetStr(data.Str); c.Stats.SetInt(data.Int); c.Stats.SetWis(data.Wis); c.Stats.SetAgi(data.Agi); c.Stats.SetCon(data.Con); c.Stats.SetCha(data.Cha); c.Stats.SetMinDam(data.MinDam); c.Stats.SetMaxDam(data.MaxDam); c.Stats.SetAccuracy(data.Accuracy); c.Stats.SetEvade(data.Evade); c.Stats.SetArmor(data.Armor); m_game.Hud.RefreshStats(); }
private void _statskillReset(StatResetData data) { OldCharacter c; (c = OldWorld.Instance.MainPlayer.ActiveCharacter).Spells.Clear(); EOMessageBox.Show(DialogResourceID.SKILL_RESET_CHARACTER_COMPLETE, EODialogButtons.Ok, EOMessageBoxStyle.SmallDialogSmallHeader); c.Stats.StatPoints = data.StatPoints; c.Stats.SkillPoints = data.SkillPoints; c.Stats.HP = data.HP; c.Stats.MaxHP = data.MaxHP; c.Stats.TP = data.TP; c.Stats.MaxTP = data.MaxTP; c.Stats.SP = data.MaxSP; c.Stats.MaxSP = data.MaxSP; c.Stats.Str = data.Str; c.Stats.Int = data.Int; c.Stats.Wis = data.Wis; c.Stats.Agi = data.Agi; c.Stats.Con = data.Con; c.Stats.Cha = data.Cha; c.Stats.MinDam = data.MinDam; c.Stats.MaxDam = data.MaxDam; c.Stats.Accuracy = data.Accuracy; c.Stats.Evade = data.Evade; c.Stats.Armor = data.Armor; m_game.Hud.RefreshStats(); m_game.Hud.RemoveAllSpells(); }