diff --git a/info.nut b/info.nut index 3045b94..1eaa978 100644 --- a/info.nut +++ b/info.nut @@ -17,8 +17,8 @@ * Fifth Floor, Boston, MA 02110-1301 USA. */ -SAVEGAME_VERSION <- 2; // Set manually if/when save games break. -MINCOMPATIBLE_SAVEGAME_VERSION <- 2; // cset: bf1430b223d5df73a0c6ba9c996594a77d497cf1 +SAVEGAME_VERSION <- 3; // Set manually if/when save games break. +MINCOMPATIBLE_SAVEGAME_VERSION <- 3; // cset: bf1430b223d5df73a0c6ba9c996594a77d497cf1 PROGRAM_VERSION <- Syntax error, set by 'make bundle'. PROGRAM_DATE <- Syntax error, set by 'make bundle'. @@ -41,7 +41,7 @@ class BusyBeeInfo extends GSInfo { function BusyBeeInfo::GetSettings() { GSInfo.AddSetting({name="num_goals", - description="Number of goals for a company", + description="Number of goals for a company (1-10)", min_value=1, max_value=10, easy_value=5, @@ -50,7 +50,7 @@ function BusyBeeInfo::GetSettings() custom_value=5, flags=GSInfo.CONFIG_NONE}); GSInfo.AddSetting({name="wait_years", - description="Number of years to wait to fulfill a new goal", + description="Time to wait before first delivery (4-20 year)", min_value=4, max_value=20, easy_value=10, @@ -58,8 +58,18 @@ function BusyBeeInfo::GetSettings() hard_value=3, custom_value=7, flags=GSInfo.CONFIG_INGAME}); + GSInfo.AddSetting({name="cargo_mp", + description="Cargo amount multiplier (50-2000%)", + min_value=50, + max_value=2000, + easy_value=50, + medium_value=500, + hard_value=1000, + custom_value=100, + step_size = 10, + flags=GSInfo.CONFIG_INGAME}); GSInfo.AddSetting({name="pass_weight", - description="Likelihood of selecting passengers as goal", + description="Likelihood of selecting passengers as goal (1-20)", min_value=1, max_value=20, easy_value=1, @@ -68,7 +78,7 @@ function BusyBeeInfo::GetSettings() custom_value=1, flags=GSInfo.CONFIG_INGAME}); GSInfo.AddSetting({name="mail_weight", - description="Likelihood of selecting mail as goal", + description="Likelihood of selecting mail as goal (1-20)", min_value=1, max_value=20, easy_value=1, @@ -77,7 +87,7 @@ function BusyBeeInfo::GetSettings() custom_value=1, flags=GSInfo.CONFIG_INGAME}); GSInfo.AddSetting({name="town_weight", - description="Likelihood of selecting other town cargoes as goal", + description="Likelihood of selecting other town cargoes as goal (1-20)", min_value=1, max_value=20, easy_value=1, diff --git a/main.nut b/main.nut index 7c7967b..82ffafd 100644 --- a/main.nut +++ b/main.nut @@ -283,6 +283,7 @@ function BusyBeeClass::SelectCargo() function BusyBeeClass::CreateChallenge(comp_id) { local cdata = this.companies[comp_id]; + local cargomp = GSController.GetSetting("cargo_mp"); for (local attempt = 0;attempt < 20; attempt += 1) { local cargo_index = this.SelectCargo(); if (cargo_index < 0) continue; @@ -301,7 +302,7 @@ function BusyBeeClass::CreateChallenge(comp_id) amount = 10 * 25 + 35 * 50 + (amount - 10 - 35) * 100; // 2000..7500 } if (cdata != null) { - cdata.AddActiveGoal(cargo, accept, amount); + cdata.AddActiveGoal(cargo, accept, amount * cargomp / 100); local dest_name; if ("town" in accept) {