Page 1 of 1

Where, in the ruleset files, is defined whether a trade route can be established here ?

Posted: Thu Sep 30, 2021 5:04 pm
by Gavroche
For example, in the "classic" game.ruleset, I see

Code: Select all

	[actionenabler_traderoute]
	action = "Establish Trade Route"
	actor_reqs    =
	    { "type",   "name", "range", "present"
	      "UnitFlag", "TradeRoute", "Local", TRUE
	    }
which, as far as I understands, tells us that the unit must have the `TradeRoute` flag in `units.ruleset`.

Where do we see that, for example, the destination city must be "far enough" or, in the case of the `Augmented2` modpack, "foreign and not at war" ?

I would suppose something in effects.ruleset, but I haven't found what.

Re: Where, in the ruleset files, is defined whether a trade route can be established here ?

Posted: Sat Oct 02, 2021 6:39 pm
by Ignatus
The minimal trade distance is a game setting, you find it either in the "Economics" tab of game settings or at the end of game.ruleset. Diplomatic and continent-sharing aspects of trade routes are defined in game.ruleset in [trade] section. Also, there are effects "Max_Trade_Routes", "Trade_Revenue_Bonus" and "Traderoute_Pct". You may consult the corresponsing section of Math of Freeciv wiki article for some details.