Move max bombard range from game to unit type
Could we instead just have an effect "Action_Range"? AI support for ranged actions seems to be rudimentary any way.
Reply To ihnatus
Could we instead just have an effect "Action_Range"? AI support for ranged actions seems to be rudimentary any way.
That would be fine. As long as the range for the bombard actions can be different for different unit types.
Reply To ihnatus
Could we instead just have an effect "Action_Range"? AI support for ranged actions seems to be rudimentary any way.
That sounds like something that would work better especially with arbitrary number of different user defined bombard (and other ranged) actions, than having all the units having long list of ranges for different actions.
Or we could have user defined values for units that could be used for a number of things. You could put something like this at the top of the file units.ruleset,
values =
{"name", "type", "optional"
"name", "str", "False"
"rule_name", "str", "True"
"class", "str", "False"
"graphic", "str", "False"
...
and this would tell the program to read the unit types looking for these values, which can then be called in lua or in requirements.
A little help for S3_2: https://redmine.freeciv.org/issues/523
Bigger rewrites need to wait.
Make the max bombard range defined for each unit type instead of using a game-wide value.