Esempio n. 1
0
        public List <float> GetRscGain()
        {
            List <float> list = RscManager.ApplyModifier(new List <float>(statsList[level].rscGain), activeEffectMod.stats.rscGain);

            list = RscManager.ApplyModifier(list, PerkManager.GetModUnitRscGain(prefabID));

            list = RscManager.ApplyModifier(list, activeEffectMul.stats.rscGain);
            return(RscManager.ApplyModifier(list, PerkManager.GetMulUnitRscGain(prefabID)));
        }
Esempio n. 2
0
        //modifier
        public static List <float> GetModAbilityCostRsc(int prefabID, List <float> modList = null)
        {
            List <float> baseList = new List <float>(defaultRsclistMod);

            for (int i = 0; i < uPIDList.Count; i++)
            {
                modList  = GetPerk(uPIDList[i]).GetModCostRsc(prefabID);
                baseList = RscManager.ApplyModifier(baseList, modList);
            }
            return(baseList);
        }
Esempio n. 3
0
 public List <float> GetUpgradeCost(int upgradeIdx = 0)
 {
     if (GetUpgradeType() == 0)           //return statsList[level+1].cost;
     //return RscManager.ApplyMultiplier(new List<float>( statsList[level+1].cost ), PerkManager.GetUnitCost(prefabID));
     {
         List <float> list = RscManager.ApplyModifier(new List <float>(statsList[level + 1].cost), PerkManager.GetModUnitCost(prefabID));
         return(RscManager.ApplyMultiplier(list, PerkManager.GetMulUnitCost(prefabID)));
     }
     else              //return upgradeTowerList[upgradeIdx].GetCost();
                       //~ return RscManager.ApplyMultiplier(new List<float>( upgradeTowerList[upgradeIdx].GetCost() ), PerkManager.GetUnitCost(upgradeTowerList[upgradeIdx].prefabID));
     {
         return(upgradeTowerList[upgradeIdx].GetCost(0));
     }
 }
Esempio n. 4
0
        public List <float> GetCost(int lvl = -1)
        {
            if (lvl < 0)
            {
                lvl = level;
            }
            //List<float> list=new List<float>(statsList[level].cost);
            //List<float> listMod=PerkManager.GetModUnitCost(prefabID);
            //List<float> listMul=PerkManager.GetMulUnitCost(prefabID);
            List <float> list = RscManager.ApplyModifier(new List <float>(statsList[lvl].cost), PerkManager.GetModUnitCost(prefabID));

            return(RscManager.ApplyMultiplier(list, PerkManager.GetMulUnitCost(prefabID)));

            //return RscManager.ApplyMultiplier(new List<float>( statsList[level].cost ), PerkManager.GetUnitCost(prefabID));
        }
Esempio n. 5
0
        public List <float> GetCostRsc()
        {
            List <float> list = RscManager.ApplyModifier(new List <float>(stats.cost), PerkManager.GetModAbilityCostRsc(prefabID));

            return(RscManager.ApplyMultiplier(list, PerkManager.GetMulAbilityCostRsc(prefabID)));
        }
Esempio n. 6
0
 public static void AddRscGainModRscTowerList(List <float> list)
 {
     rscGainModRscTowerList = RscManager.ApplyModifier(rscGainModRscTowerList, list);
 }
Esempio n. 7
0
 public static void AddRscGainModWaveClearedList(List <float> list)
 {
     rscGainModWaveClearedList = RscManager.ApplyModifier(rscGainModWaveClearedList, list);
 }
Esempio n. 8
0
 public static void AddRscGainModCreepKilledList(List <float> list)
 {
     rscGainModCreepKilledList = RscManager.ApplyModifier(rscGainModCreepKilledList, list);
 }