Example #1
0
    public void Initialize(Unit u)
    {
        Unit = u;

        CalcBaseStats();

        if (buffs == null)
        {
            buffs = new HashSet <Buff>();
        }
        if (skilltree == null)
        {
            skilltree = new SkillTree();
        }
        skilltree.CalculateStats(level);
        buffs.Add(skilltree);
        if (backpack == null)
        {
            Backpack = new Backpack();
        }
        backpack.countStats();
    }