Project

General

Profile

Feature #1917 ยป 0063-sandbox-Make-Factory-to-require-access-to-Coal-Mine.patch

Marko Lindqvist, 01/18/2026 11:42 PM

View differences:

data/sandbox/README.sandbox
Metal to third city which can then trade Goods or Equipment to fourth
city. Goods later in chains trade for higher value.
Bridges
Bridges:
Base number of trade routes a city can have is just one.
Another trade route becomes possible, if there's a tile with
both River and Road within the city area.
Coal Mines:
Building a factory requires that city is connected via roads
or rivers to a tile with both Coal resource and a Mine.
Corruption and World Size:
Under Republic government, the speed corruption increases as one goes
further from the capital is relative to the size of the world. At
data/sandbox/buildings.ruleset
name = _("Factory")
genus = "Improvement"
reqs =
{ "type", "name", "range"
"Tech", "Industrialization", "Player"
{ "type", "name", "range"
"Tech", "Industrialization", "Player"
"TiledefConnected", "Coal Mine", "City"
}
graphic = "b.factory"
graphic_alt = "-"
data/sandbox/game.ruleset
[aarea]
; Unit type to use to determine access areas. Access area is the area this unit
; can access (move to)
access_unit = ""
access_unit = "Caravan"
; /* <-- avoid gettext warnings
data/sandbox/terrain.ruleset
[tiledef_bridge]
name = _("Bridge")
extras = "River", "Road"
[tiledef_coal_mine]
name = _("Coal Mine")
extras = "Coal", "Mine"
    (1-1/1)