From 9cdd217e536a46625fa8b48f9f89691040f30039 Mon Sep 17 00:00:00 2001 From: AviationGamerX <76180779+AviationGamerX@users.noreply.github.com> Date: Wed, 2 Oct 2024 19:21:31 +0300 Subject: [PATCH] removed "newvalue" in post_cb, and added "_settings_game" to define where difficulty is from (also corrected misspeslling "difficulity" to "difficulty") --- src/table/settings/difficulty_settings.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table/settings/difficulty_settings.ini b/src/table/settings/difficulty_settings.ini index 358e613cef..4955a7ed14 100644 --- a/src/table/settings/difficulty_settings.ini +++ b/src/table/settings/difficulty_settings.ini @@ -114,7 +114,7 @@ def = 100 min = 10 max = 6000000 pre_cb = [](auto &new_value) { new_value = (new_value + 10 / 2) / 10 * 10; return true; } -post_cb = [](auto &new_value) { difficulity.max_loan = ((new_value/100)* 300000) * GetCurrency().rate; return true;} +post_cb = [](auto) { _settings_game.difficulty.max_loan = ((_settings_game.difficulty.max_loan_percentage/100)* 300000) * GetCurrency().rate;} interval = 10 str = STR_CONFIG_SETTING_MAXIMUM_INITIAL_LOAN strhelp = STR_CONFIG_SETTING_MAXIMUM_INITIAL_LOAN_HELPTEXT