Skip to content

Commit

Permalink
adding some missing xp tables (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmriggs authored Nov 20, 2020
1 parent 935586f commit 1b9613a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion ACViewer/FileTypes/XpTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,23 @@ public TreeNode BuildTree()
specializedSkillXpList.Items.Add(specializedSkillXpNode);
}

treeView.Items.AddRange(new List<TreeNode>() { attributeXpList, vitalXpList, trainedSkillXpList, specializedSkillXpList });
var characterLevelXpList = new TreeNode("CharacterLevelXpList");

for (var i = 0; i < _xpTable.CharacterLevelXPList.Count; i++)
{
var characterLevelXpNode = new TreeNode($"{i}: {_xpTable.CharacterLevelXPList[i]:N0}");
characterLevelXpList.Items.Add(characterLevelXpNode);
}

var characterLevelSkillCreditList = new TreeNode("CharacterLevelSkillCreditList");

for (var i = 0; i < _xpTable.CharacterLevelSkillCreditList.Count; i++)
{
var characterLevelSkillCreditNode = new TreeNode($"{i}: {_xpTable.CharacterLevelSkillCreditList[i]:N0}");
characterLevelSkillCreditList.Items.Add(characterLevelSkillCreditNode);
}

treeView.Items.AddRange(new List<TreeNode>() { attributeXpList, vitalXpList, trainedSkillXpList, specializedSkillXpList, characterLevelXpList, characterLevelSkillCreditList });

return treeView;
}
Expand Down

0 comments on commit 1b9613a

Please sign in to comment.