1
0
Fork 0

removed "newvalue" in post_cb, and added "_settings_game" to define where difficulty is from

(also corrected misspeslling "difficulity" to "difficulty")
pull/12974/head
AviationGamerX 2024-10-02 19:21:31 +03:00
parent 80f46d141d
commit 9cdd217e53
1 changed files with 1 additions and 1 deletions

View File

@ -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