Honiahaka
Page
[Solved]
I am trying to get the base of all skills by using foreach (Skill skill in pm.Skills)
But it returns all the skills null
Thank you for your time.
I did spend a few hours searching the forums to resolve this problem.
Edit: I got some help and am able to achieve what i wanted to do with this
Thanks a lot curious viewers
I am trying to get the base of all skills by using foreach (Skill skill in pm.Skills)
But it returns all the skills null
Thank you for your time.
I did spend a few hours searching the forums to resolve this problem.
Code:
foreach (Skill skill in pm.Skills)
{
if (skill == null) //Debug
{
Console.WriteLine("ERROR: classic-skill");
continue;
}
exp += skill.Base * Settings.EXP_PER_POINT_ONE;
}
Edit: I got some help and am able to achieve what i wanted to do with this
Code:
Skills skills = who.Skills;
for ( int i = 0; i < skills.Length; ++i )
{
Skill skill = skills[i];
exp += skill.Base * Settings.EXP_PER_POINT_ONE;
}
Thanks a lot curious viewers