Old revision #p7uvaedf7 | New revision #psh2zd1js | ||
---|---|---|---|
5 | if (AITown.IsActionAvailable(town, action)) { | 5 | if (AITown.IsActionAvailable(town, action)) { |
6 | local perform_action = true; | 6 | local perform_action = true; |
7 | if (cvgs.IsCompanyValueGSGame() && cvgs.GetCompanyIDRank(myCID) == 1 && cvgs.RankingList().Count() > 1) { | 7 | if (cvgs.IsCompanyValueGSGame() && cvgs.GetCompanyIDRank(myCID) == 1 && cvgs.RankingList().Count() > 1) { |
8 | |||
9 | if (TestPerformTownAction().TestCost(town, action) > cvgs.GetCompanyIDDiffToNext(myCID, false)) { | 8 | if (TestPerformTownAction().TestCost(town, action) > cvgs.GetCompanyIDDiffToNext(myCID, false)) { |
10 | perform_action = false; | 9 | perform_action = false; |
11 | } | 10 | } |