Exemplo n.º 1
0
 public List <float> GetPurchaseCostRsc()
 {
     //float costMultiplier=PerkManager.GetPerkCostMul(prefabID);
     //List<float> costList=RscManager.ApplyMultiplier(new List<float>( costRsc ), costMultiplier);
     //return RscManager.ApplyMultiplier(costList, PerkManager.GetPerkCost(prefabID));
     return(RscManager.ApplyMultiplier(costRsc, PerkManager.GetPerkCost(prefabID)));
 }
Exemplo n.º 2
0
 public List <int> GetRsc(UnitCreep unit, List <int> overrideList = null)
 {
     if (mulRsc >= 0)
     {
         overrideList = RscManager.ApplyMultiplier(new List <int>(unit.rscGainOnDestroyed), mulRsc);
     }
     return(overrideList);
 }
Exemplo n.º 3
0
        //multiplier
        public static List <float> GetMulUnitCost(int prefabID, List <float> mulList = null)
        {
            List <float> baseList = new List <float>(defaultRsclistMul);

            for (int i = 0; i < uPIDList.Count; i++)
            {
                mulList  = GetPerk(uPIDList[i]).GetMulCostRsc(prefabID);
                baseList = RscManager.ApplyMultiplier(baseList, mulList);
            }
            return(baseList);
        }
Exemplo n.º 4
0
        public static List <float> GetPerkCost(int prefabID, List <float> itemList = null)
        {
            List <float> baseList = new List <float>(defaultRsclistMul);

            for (int i = 0; i < pPIDList.Count; i++)
            {
                itemList = GetPerk(pPIDList[i]).GetCost(prefabID);
                baseList = RscManager.ApplyMultiplier(baseList, itemList);
            }
            return(baseList);
        }
Exemplo n.º 5
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));
     }
 }
Exemplo n.º 6
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));
        }
Exemplo n.º 7
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)));
        }
Exemplo n.º 8
0
 public static void AddRscGainMulRscTowerList(List <float> list)
 {
     rscGainMulRscTowerList = RscManager.ApplyMultiplier(rscGainMulRscTowerList, list);
 }
Exemplo n.º 9
0
 public static void AddRscGainMulWaveClearedList(List <float> list)
 {
     rscGainMulWaveClearedList = RscManager.ApplyMultiplier(rscGainMulWaveClearedList, list);
 }
Exemplo n.º 10
0
 public static void AddRscGainMulCreepKilledList(List <float> list)
 {
     rscGainMulCreepKilledList = RscManager.ApplyMultiplier(rscGainMulCreepKilledList, list);
 }
Exemplo n.º 11
0
 public List <float> GetSellValue()
 {
     return(RscManager.ApplyMultiplier(new List <float>(statsList[level].sellValue), RscManager.GetSellMultiplier()));
 }