private static double AICalcTechStyleCost(StrategicAI ai, AITechStyleInfo style, Tech tech) { if (AIResearchFramework.AITechStyleContains(ai, style, tech)) { return((double)style.CostFactor); } return(1.0); }
private static bool AITechStyleContains(StrategicAI ai, AITechStyleInfo style, Tech tech) { TechFamilies techFamilyEnum = ai.Game.AssetDatabase.MasterTechTree.GetTechFamilyEnum(tech); return(style.TechFamily == techFamilyEnum); }