Exemplo n.º 1
0
 IEnumerable <float> IModifier.GetAdditive(Stat stat)
 {
     foreach (var slot in GetAllPopulatedSlots())
     {
         IModifier item = GetItemInSlot(slot) as IModifier;
         if (item != null)
         {
             foreach (float modifier in item.GetAdditive(stat))
             {
                 yield return(modifier);
             }
         }
     }
 }