Hi Fortheking55, thanks for reviving this mod!
The Rank Modifier setting is a little confusing, I had to look in the mod files to see the formula to understand what the setting for Rank Modifier did. It is a little convoluted and could be made a little more logical.
Currently it adds a calculated amount to the default kills required per level. This calculation is unspecified in the description and on looking at the code it could be simplified.
Currently, the kills required for level 1 are calculated as:
Default Kills + ( ( ( Default Kills * ( Modifier / 100 ) ) / 10 ) * 100 )
Equivalent to:
Default Kills + (Default Kills * (Modifier / 10))
For example, if the Modifier is set to 10, this takes the default kills for Rank 1 of 50, adds 50 and makes it 100 kills. Set the Modifier to 50 and the kills for Rank 1 becomes 300. The
I propose changing to a straight multiplier. I made the necessary modifications in the code (along with some changes to variable names and the english locale file, the other locales will need to be updated). I have tested for a bit and it seems to work properly. (I have zero knowledge of git)
In prototypes/scripts/defines.lua, change lines 37 to 45 to:
local multiplier = settings.startup["heroturrets-setting-level-up-multiplier"].value
heroturrets.defines.turret_levelup_kills_one = heroturrets.defines.turret_initial_one_kills_value * multiplier
heroturrets.defines.turret_levelup_damage_one = heroturrets.defines.turret_initial_one_damage_value * multiplier
heroturrets.defines.turret_levelup_kills_two = heroturrets.defines.turret_initial_two_kills_value * multiplier
heroturrets.defines.turret_levelup_damage_two = heroturrets.defines.turret_initial_two_damage_value * multiplier
heroturrets.defines.turret_levelup_kills_three = heroturrets.defines.turret_initial_three_kills_value * multiplier
heroturrets.defines.turret_levelup_damage_three = heroturrets.defines.turret_initial_three_damage_value * multiplier
heroturrets.defines.turret_levelup_kills_four = heroturrets.defines.turret_initial_four_kills_value * multiplier
heroturrets.defines.turret_levelup_damage_four = heroturrets.defines.turret_initial_four_damage_value * multiplier
In settings.lua, change line 5 to 8 to:
name = "heroturrets-setting-level-up-multiplier",
setting_type = "startup",
default_value = 1,
minimum_value = 1,
In locale\en\locale.cfg change line 34 to:
heroturrets-setting-level-up-multiplier=Rank Requirement Multiplier
And line 51 to:
heroturrets-setting-level-up-multiplier=Multiplies the default required kills/damage per rank (Default = 1)
That should do it. Note that I have almost no experience modding Factorio.