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))); }
//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); }
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)); } }
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)); }
public List <float> GetCostRsc() { List <float> list = RscManager.ApplyModifier(new List <float>(stats.cost), PerkManager.GetModAbilityCostRsc(prefabID)); return(RscManager.ApplyMultiplier(list, PerkManager.GetMulAbilityCostRsc(prefabID))); }
public static void AddRscGainModRscTowerList(List <float> list) { rscGainModRscTowerList = RscManager.ApplyModifier(rscGainModRscTowerList, list); }
public static void AddRscGainModWaveClearedList(List <float> list) { rscGainModWaveClearedList = RscManager.ApplyModifier(rscGainModWaveClearedList, list); }
public static void AddRscGainModCreepKilledList(List <float> list) { rscGainModCreepKilledList = RscManager.ApplyModifier(rscGainModCreepKilledList, list); }