Exemplo n.º 1
0
    private void CollectTalent()
    {
        Dictionary <AttrType, float> dictionary  = new Dictionary <AttrType, float>();
        Dictionary <AttrType, float> dictionary2 = new Dictionary <AttrType, float>();

        HeroAttr.CellectTalentAttrs(out dictionary, out dictionary2);
        foreach (KeyValuePair <AttrType, float> current in dictionary)
        {
            base.ChangeAttr(current.Key, OpType.Add, current.Value);
        }
        foreach (KeyValuePair <AttrType, float> current2 in dictionary2)
        {
            base.ChangeAttr(current2.Key, OpType.Mul, current2.Value);
        }
    }