Loading

Paste #ptjsvzrdg

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

Version history

Revision # Author Created at
pwcf1wdzf Anonymous 26 Dec 2018, 22:44:19 UTC Diff

Comments