Loading

Revision differences

Old revision #p7uvaedf7New 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                            AILog.Info("Cost of perfoming action: " + TestPerformTownAction().TestCost(town, action) + " ; Value difference to company behind: " + cvgs.GetCompanyIDDiffToNext(myCID, false));    
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                            }