Exemplo n.º 1
0
 public void calculate(AttributesManager.MidAttributes mid)
 {
     foreach (IBuff bi in heap)
     {
         bi.calculate(mid);
     }
 }
Exemplo n.º 2
0
 public void calculate(AttributesManager.MidAttributes mid)
 {
     //TODO:
     mid.Intelligence  += 10 * lv;
     mid.Agility       += 10 * lv;
     mid.Strength      += 10 * lv;
     mid.SpeedBase     += 5 + lv / 5;
     mid.SpeedMutiply  += (int)((1 + 0.5f / lv / lv) * 100);
     mid.ExpMutiply    += 100;
     mid.CollectRaidus += 1;
 }
Exemplo n.º 3
0
        public void calculate(AttributesManager.MidAttributes mid)
        {
            var field_info = typeof(AttributesManager.MidAttributes).GetField(field_name);

            if (field_info == null)
            {
                Debug.Log("not existed field in mid attributes: " + field_name);
                return;
            }
            var tmp    = (int)field_info.GetValue(mid);
            var result = tmp + val;

            field_info.SetValue(mid, result);
        }