Old revision #pwcf1wdzf | New revision #ptjsvzrdg | ||
---|---|---|---|
2 | if (AITown.IsActionAvailable(town, AITown.TOWN_ACTION_BUILD_STATUE)) { | 2 | if (AITown.IsActionAvailable(town, AITown.TOWN_ACTION_BUILD_STATUE)) { |
3 | local perform_action = true; | 3 | local perform_action = true; |
4 | if (cvgs.IsCompanyValueGSGame() && cvgs.GetCompanyIDRank(AICompany.ResolveCompanyID(AICompany.COMPANY_SELF)) == 1 && cvgs.RankingList().Count() > 1) { | 4 | if (cvgs.IsCompanyValueGSGame() && cvgs.GetCompanyIDRank(AICompany.ResolveCompanyID(AICompany.COMPANY_SELF)) == 1 && cvgs.RankingList().Count() > 1) { |
5 | |||
6 | if (TestPerformTownAction().TestCost(town, AITown.TOWN_ACTION_BUILD_STATUE) > cvgs.GetCompanyIDDiffToNext(AICompany.ResolveCompanyID(AICompany.COMPANY_SELF), false)) { | 5 | if (TestPerformTownAction().TestCost(town, AITown.TOWN_ACTION_BUILD_STATUE) > cvgs.GetCompanyIDDiffToNext(AICompany.ResolveCompanyID(AICompany.COMPANY_SELF), false)) { |
7 | perform_action = false; | 6 | perform_action = false; |
8 | } | 7 | } |