Commit f30b772b authored by Max Maton's avatar Max Maton

Make script more compatible with older versions

Fixes #2
parent 65162ac6
......@@ -3,16 +3,16 @@ class MigrationScriptInfo extends GSInfo {
function GetName() { return "Migrations"; }
function GetShortName() { return "MIGR"; }
function GetDescription() { return "Town migrations"; }
function GetVersion() { return 1; }
function GetVersion() { return 2; }
function MinVersionToLoad() { return 1; }
function GetDate() { return "2018-09-13"; }
function UseAsRandomAI() { return true; }
function CreateInstance() { return "MigrationScript"; }
function GetAPIVersion() { return "1.8"; }
function GetAPIVersion() { return "1.4"; }
function GetURL() { return "https://gitlab.com/thexa4/migrations/"; }
function GetSettings() {
AddSetting({name = "log_level", description = "Debug: Log level (higher = print more)", easy_value = 3, medium_value = 3, hard_value = 3, custom_value = 3, flags = CONFIG_INGAME, min_value = 1, max_value = 3});
AddSetting({name = "log_level", description = "Debug: Log level (higher = print more)", easy_value = 1, medium_value = 1, hard_value = 1, custom_value = 3, flags = CONFIG_INGAME, min_value = 1, max_value = 3});
AddLabels("log_level", {_1 = "1: Info", _2 = "2: Verbose", _3 = "3: Debug" } );
AddSetting({name = "city_creation_floor", description = "How hard it is for a new town to start.", easy_value = 3000, medium_value = 5000, hard_value = 7000, custom_value = 3000, flags = 0, min_value = 100, max_value = 10000});
AddSetting({name = "population_modifier", description = "How quickly a town grows once created.", easy_value = 10, medium_value = 8, hard_value = 5, custom_value = 10, flags = 0, min_value = 1, max_value = 100});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment