Loading

Paste #psh2zd1js

  1. local myCID = Utils.MyCID();
  2.  
  3.                 if (!AITown.HasStatue(town)) {
  4.                     local action = AITown.TOWN_ACTION_BUILD_STATUE;
  5.                     if (AITown.IsActionAvailable(town, action)) {
  6.                         local perform_action = true;
  7.                         if (cvgs.IsCompanyValueGSGame() && cvgs.GetCompanyIDRank(myCID) == 1 && cvgs.RankingList().Count() > 1) {
  8.                             if (TestPerformTownAction().TestCost(town, action) > cvgs.GetCompanyIDDiffToNext(myCID, false)) {
  9.                                 perform_action = false;
  10.                             }
  11.                         }
  12.                         if (perform_action && AITown.PerformTownAction(town, action)) {
  13.                             AILog.Warning("Built a statue in " + AITown.GetName(town) + ".");
  14.                         }
  15.                     }

Version history

Revision # Author Created at
p7uvaedf7 Anonymous 26 Dec 2018, 23:25:09 UTC Diff
ptjsvzrdg Anonymous 26 Dec 2018, 22:48:49 UTC Diff
pwcf1wdzf Anonymous 26 Dec 2018, 22:44:19 UTC Diff

Comments