Effects for 7x7 squares
Posted: Sun Apr 19, 2020 10:35 am
7x7 squares centered at a unit are magical for Civilization games. In Civ2, units are healed 10% faster if a home (allied?) city is within this range, and another 10% if the city has Barracks. In Civ3, foreign unit positioned within a nation's borders in this range from some of the nation's cities is considered placed offensively enough to make ultimative request to its owner to remove all units out of the borders immediately. In Freeciv, some bases in this range from an allied city make military units inside not to cause military unhappiness to their city; also, barbarians may be disbanded if there are no hostile units or cities in the range.
Thus, let's introduce new requirements:
* "NearCityDiplRel", "War/Team/Alliance...", "Local/City/Player/Team/Alliance/World" - a city belonging to a player having this diplrel to a player in the range is within 3-radius square from the target tile; "Local" range means DiplRel to the owner of the tile and "City" to the owner of the target city.
* "NearBuilding", "Barracks etc.", "Player/Team/Alliance..." - The 3-radius square contains a city with this building belonging to a player in the range.
These two effects may make it possible to reproduce Civ2 healing effects.
* "NearUnitDiplRel", "War etc.", "Player etc." - analogical to NearCityDiplRel but towards owners of units around. This may unhardcode "Retire_Pct" effect and eventually transform it into a proper trireme sinking mechanism.
Thus, let's introduce new requirements:
* "NearCityDiplRel", "War/Team/Alliance...", "Local/City/Player/Team/Alliance/World" - a city belonging to a player having this diplrel to a player in the range is within 3-radius square from the target tile; "Local" range means DiplRel to the owner of the tile and "City" to the owner of the target city.
* "NearBuilding", "Barracks etc.", "Player/Team/Alliance..." - The 3-radius square contains a city with this building belonging to a player in the range.
These two effects may make it possible to reproduce Civ2 healing effects.
* "NearUnitDiplRel", "War etc.", "Player etc." - analogical to NearCityDiplRel but towards owners of units around. This may unhardcode "Retire_Pct" effect and eventually transform it into a proper trireme sinking mechanism.