--- a/bin/ai/SQNoAI/main.nut Sun Mar 18 18:37:45 2007 +0000
+++ b/bin/ai/SQNoAI/main.nut Sun Mar 18 18:54:24 2007 +0000
@@ -35,7 +35,7 @@
{
if (this.GetTick() == 1) {
if (!this.company.SetCompanyName("SQNoAI")) {
- this.company.SetCompanyName("SQNoAI " + this.base.Random());
+ this.company.SetCompanyName("SQNoAI " + this.base.Rand());
}
print("Map size: " + this.map.GetMapSizeX() + " by " +
this.map.GetMapSizeY() + ", " + this.map.GetMapSize() + " tiles");
@@ -66,11 +66,11 @@
if (this.GetTick() % 14 == 0) {
local level = (this.company.GetMaxLoanAmount() / this.company.GetLoanInterval()) + 1;
- this.company.SetLoanAmount(this.base.RandomRange(level) * this.company.GetLoanInterval());
+ this.company.SetLoanAmount(this.base.RandRange(level) * this.company.GetLoanInterval());
}
if (this.GetTick() % 13 == 0) {
- local town_id = this.base.RandomRange(this.town.GetMaxTownID());
+ local town_id = this.base.RandRange(this.town.GetMaxTownID());
if (this.town.IsValidTown(town_id)) {
local town_name = this.town.GetName(town_id);
local t = this.town.GetLocation(town_id);