-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.nut
executable file
·44 lines (42 loc) · 2.92 KB
/
info.nut
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* This file is part of AdmiralAI.
*
* AdmiralAI is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* AdmiralAI is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with AdmiralAI. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2008-2010 Thijs Marinussen
*/
class AdmiralAI extends AIInfo {
version_major = 26;
function GetAuthor() { return "Thijs Marinussen"; }
function GetName() { return "AdmiralAI"; }
function GetShortName() { return "ADML"; }
function GetDescription() { return "An AI that uses several types of transport"; }
function GetVersion() { return version_major; }
function MinVersionToLoad() { return 21; }
function GetDate() { return "2010-08-12"; }
function CreateInstance() { return "AdmiralAI"; }
function GetAPIVersion() { return "1.10"; }
function GetSettings() {
AddSetting({name = "use_busses", description = "Enable busses", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = CONFIG_BOOLEAN});
AddSetting({name = "use_trucks", description = "Enable trucks", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = CONFIG_BOOLEAN});
AddSetting({name = "use_planes", description = "Enable aircraft", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = CONFIG_BOOLEAN});
AddSetting({name = "use_trains", description = "Enable trains", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = CONFIG_BOOLEAN});
AddSetting({name = "build_statues", description = "Try to build statues as soon as the AI has enough money", easy_value = 0, medium_value = 1, hard_value = 1, custom_value = 1, flags = CONFIG_BOOLEAN});
AddSetting({name = "always_autorenew", description = "Always use autoreplace regardless of the breakdown setting", easy_value = 0, medium_value = 0, hard_value = 0, custom_value = 0, flags = CONFIG_BOOLEAN});
AddSetting({name = "depot_near_station", description = "Build train depots near the loading station instead of near the dropoff station.", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = CONFIG_BOOLEAN});
AddSetting({name = "build_bus_dtrs", description = "Build drive-through stops for busses", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 1, flags = CONFIG_BOOLEAN});
AddSetting({name = "debug_signs", description = "Enable building debug signs", easy_value = 0, medium_value = 0, hard_value = 0, custom_value = 0, flags = CONFIG_BOOLEAN});
}
};
RegisterAI(AdmiralAI());