Method AllocateSkillPoints
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
AllocateSkillPoints(string, int)
Spends available skill points to improve a specific skill.
public void AllocateSkillPoints(string skillName, int amount)
Parameters
Remarks
If you don't have enough skill points, skill doesn't exist or you don't meet the skill requirements, nothing will happen.
// Spend 3 points on Fireball skill
AllocateSkillPoints("Fireball", 3);
if (SkillPoints >= 1)
{
AllocateSkillPoints("Heal", 1);
Say($"Improved my healing! {SkillPoints} skill points remaining");
}
else
{
Say("I don't have enough skill points!");
}