Page 1 of 1

Predefined multipliers

Posted: Wed May 24, 2017 12:18 pm
by Lachu
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"
}