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

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
Post Reply
Gavroche
Posts: 24
Joined: Wed Dec 26, 2018 8:52 am

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

Post 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.
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

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

Post 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.
Post Reply