Predefined multipliers

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
Lachu
Hardened
Posts: 209
Joined: Sat May 04, 2013 2:19 pm

Predefined multipliers

Postby Lachu » Wed May 24, 2017 12:18 pm

I'm rather quite beginning in Freeciv development, but I saw that's in effects.ruleset exist effect types depended on distance. Maybe, instead of creating such effects, better:
- Allow use many multipliers in effects
- Create multiplier like distance

For example Corruption_waste_by_distance could been achieved like this:
[effect_corruption_by_distance_1]
type = "Corruption"
value = 1
multipliers = {
"type", "name", "multiply"
"from_reqs'", "distance", "1"
"policies", "centralization", "2"
}

reqs =
{
"type", "name", "range"
"distance", "capital", "GovernmentImportant" ; Or Cities in range
"CityTile", "Center", "Local"
}