Method AllocateSkillPoints
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
AllocateSkillPoints(string, int)
Spends available skill points to improve a specific skill.
public static 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
Hero.AllocateSkillPoints("Fireball", 3);
if (Hero.SkillPoints >= 1)
{
Hero.AllocateSkillPoints("Heal", 1);
Hero.Say($"Improved my healing! {Hero.SkillPoints} skill points remaining");
}
else
{
Hero.Say("I don't have enough skill points!");
}