Re: [Patch] Speed bonus has less effect the shorter the journey
Reply #1 –
Update: I have now added code to enable the minimum distance (default: 16 tiles), the maximum distance (default 256 tiles) and the local bonus (default 75% - note that this is now a percentage) via Simuconf.tab, and I attach the relevant patch files, as well as a patch file for a sample simuconf.tab.
Note that, for some reason, I was unable to make a patch file from umgebung.h (Tortoise SVN came up with an error about inconsistent line endings), so I attach the complete file here for reference.
I have tested this patch: it does compile, it does not crash the game, and it does work as expected. I will undertake more extensive play testing for balancing when I have time, but that will involve re-doing speedbonus.tab first. I hope that this is helpful. Comments would be welcome.
Edit: It seems that I can only attach four files. Therefore, I have left out the simuconf.tab patch. Instead, here is the extra code that should go into simuconf.tab:
# Adjustment of speed bonus for local transport
min_bonus_max_distance = 16
max_bonus_min_distance = 256
local_bonus_multiplier_percent = 75
(Those numbers represent the default values. Balancing might indicate that different values are needed)