Exemplo n.º 1
0
 public SecStatistic()
 {
     typeOfStat   = TypeOfStat.Attack;
     name         = "Damage";
     stats        = 1;
     isItAPercent = false;
     showItem     = false;
 }
Exemplo n.º 2
0
 public PrimStatisic()
 {
     typeOfStat   = TypeOfStat.Attack;
     name         = "Strength";
     stats        = 1;
     isItAPercent = false;
     showItem     = false;
 }
 //This adds a new stat to the list of statsagainst
 public void AddNewStats(List <string> type, TypeOfStat typeofStat)
 {
     foreach (var item in Stats.statsForObjects.m_primaryStatistic)
     {
         if (item.typeOfStat == typeofStat)
         {
             type.Add(item.name);
         }
     }
     foreach (var item in Stats.statsForObjects.m_secondaryStatistic)
     {
         if (item.typeOfStat == typeofStat)
         {
             type.Add(item.name);
         }
     }
 }