Example #1
0
        public void AcquireSkill(EAbility skill)
        {
            SkillNode newSkill = m_SkillTree[(int)skill];

            switch (newSkill.GetStatus())
            {
            case ESkillStatus.Learnable:
                GuiOutput.Log(String.Format("{0} Acquired!", skill));
                newSkill.Acquire();
                break;

            case ESkillStatus.MissingPrereq:
                GuiOutput.Log("MISSING PREREQ");
                break;

            case ESkillStatus.Unlearnable:
                GuiOutput.Log("UNLEARNABLE");
                break;

            case ESkillStatus.Acquired:
                GuiOutput.Log("ALREADY LEARNT");
                break;
            }
        }