Feature: Setting for multiplying cargo amounts from 50% to 2000% (ST2).
This commit is contained in:
24
info.nut
24
info.nut
@@ -17,8 +17,8 @@
|
|||||||
* Fifth Floor, Boston, MA 02110-1301 USA.
|
* Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SAVEGAME_VERSION <- 2; // Set manually if/when save games break.
|
SAVEGAME_VERSION <- 3; // Set manually if/when save games break.
|
||||||
MINCOMPATIBLE_SAVEGAME_VERSION <- 2; // cset: bf1430b223d5df73a0c6ba9c996594a77d497cf1
|
MINCOMPATIBLE_SAVEGAME_VERSION <- 3; // cset: bf1430b223d5df73a0c6ba9c996594a77d497cf1
|
||||||
|
|
||||||
PROGRAM_VERSION <- Syntax error, set by 'make bundle'.
|
PROGRAM_VERSION <- Syntax error, set by 'make bundle'.
|
||||||
PROGRAM_DATE <- 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()
|
function BusyBeeInfo::GetSettings()
|
||||||
{
|
{
|
||||||
GSInfo.AddSetting({name="num_goals",
|
GSInfo.AddSetting({name="num_goals",
|
||||||
description="Number of goals for a company",
|
description="Number of goals for a company (1-10)",
|
||||||
min_value=1,
|
min_value=1,
|
||||||
max_value=10,
|
max_value=10,
|
||||||
easy_value=5,
|
easy_value=5,
|
||||||
@@ -50,7 +50,7 @@ function BusyBeeInfo::GetSettings()
|
|||||||
custom_value=5,
|
custom_value=5,
|
||||||
flags=GSInfo.CONFIG_NONE});
|
flags=GSInfo.CONFIG_NONE});
|
||||||
GSInfo.AddSetting({name="wait_years",
|
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,
|
min_value=4,
|
||||||
max_value=20,
|
max_value=20,
|
||||||
easy_value=10,
|
easy_value=10,
|
||||||
@@ -58,8 +58,18 @@ function BusyBeeInfo::GetSettings()
|
|||||||
hard_value=3,
|
hard_value=3,
|
||||||
custom_value=7,
|
custom_value=7,
|
||||||
flags=GSInfo.CONFIG_INGAME});
|
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",
|
GSInfo.AddSetting({name="pass_weight",
|
||||||
description="Likelihood of selecting passengers as goal",
|
description="Likelihood of selecting passengers as goal (1-20)",
|
||||||
min_value=1,
|
min_value=1,
|
||||||
max_value=20,
|
max_value=20,
|
||||||
easy_value=1,
|
easy_value=1,
|
||||||
@@ -68,7 +78,7 @@ function BusyBeeInfo::GetSettings()
|
|||||||
custom_value=1,
|
custom_value=1,
|
||||||
flags=GSInfo.CONFIG_INGAME});
|
flags=GSInfo.CONFIG_INGAME});
|
||||||
GSInfo.AddSetting({name="mail_weight",
|
GSInfo.AddSetting({name="mail_weight",
|
||||||
description="Likelihood of selecting mail as goal",
|
description="Likelihood of selecting mail as goal (1-20)",
|
||||||
min_value=1,
|
min_value=1,
|
||||||
max_value=20,
|
max_value=20,
|
||||||
easy_value=1,
|
easy_value=1,
|
||||||
@@ -77,7 +87,7 @@ function BusyBeeInfo::GetSettings()
|
|||||||
custom_value=1,
|
custom_value=1,
|
||||||
flags=GSInfo.CONFIG_INGAME});
|
flags=GSInfo.CONFIG_INGAME});
|
||||||
GSInfo.AddSetting({name="town_weight",
|
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,
|
min_value=1,
|
||||||
max_value=20,
|
max_value=20,
|
||||||
easy_value=1,
|
easy_value=1,
|
||||||
|
|||||||
3
main.nut
3
main.nut
@@ -283,6 +283,7 @@ function BusyBeeClass::SelectCargo()
|
|||||||
function BusyBeeClass::CreateChallenge(comp_id)
|
function BusyBeeClass::CreateChallenge(comp_id)
|
||||||
{
|
{
|
||||||
local cdata = this.companies[comp_id];
|
local cdata = this.companies[comp_id];
|
||||||
|
local cargomp = GSController.GetSetting("cargo_mp");
|
||||||
for (local attempt = 0;attempt < 20; attempt += 1) {
|
for (local attempt = 0;attempt < 20; attempt += 1) {
|
||||||
local cargo_index = this.SelectCargo();
|
local cargo_index = this.SelectCargo();
|
||||||
if (cargo_index < 0) continue;
|
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
|
amount = 10 * 25 + 35 * 50 + (amount - 10 - 35) * 100; // 2000..7500
|
||||||
}
|
}
|
||||||
if (cdata != null) {
|
if (cdata != null) {
|
||||||
cdata.AddActiveGoal(cargo, accept, amount);
|
cdata.AddActiveGoal(cargo, accept, amount * cargomp / 100);
|
||||||
|
|
||||||
local dest_name;
|
local dest_name;
|
||||||
if ("town" in accept) {
|
if ("town" in accept) {
|
||||||
|
|||||||
Reference in New Issue
Block a user