I've been building up a Freeciv mod some time now. One thing I've added is the variable city radius depending of numerous reqs.
For some reason, everytime I add following lines to effects.ruleset, game crashes during first 10 turns or so. Remove them and game works just fine, though I can't find anything wrong with them.
Code: Select all
; City radius under Republic - radius is sqrt(n +2) (2,83 - 3,74)
[effect_city_radius_republic_1]
type = "City_Radius_Sq"
value = 2
reqs =
{ "type", "name", "range"
"Building", "Courthouse", "City"
"Gov", "Republic", "Player"
}
nreqs =
{ "type", "name", "range"
"Building", "Palace", "City"
}
; City radius under Republic - radius is sqrt(n +3) (2,83 - 4)
[effect_city_radius_republic_2]
type = "City_Radius_Sq"
value = 3
reqs =
{ "type", "name", "range"
"Building", "Palace", "City"
"Gov", "Republic", "Player"
}
; City radius under Democracy - radius is sqrt(n +5) (3 - 4,24)
[effect_city_radius_democracy_1]
type = "City_Radius_Sq"
value = 5
reqs =
{ "type", "name", "range"
"Building", "Courthouse", "City"
"Gov", "Democracy", "Player"
}
nreqs =
{ "type", "name", "range"
"Building", "Palace", "City"
}
; City radius under Democracy - radius is sqrt(n +5) (3,16 - 4,24)
[effect_city_radius_democracy_2]
type = "City_Radius_Sq"
value = 5
reqs =
{ "type", "name", "range"
"Building", "Palace", "City"
"Gov", "Democracy", "Player"
}