Sid Meier's Civilization VI

Sid Meier's Civilization VI

Build. Discover. Share.
Discover new maps, scenarios, leaders, units and more. Build and share your own creations. Mods are created by and for the Civilization community, and are not officially supported by Firaxis or 2K.
De Re K 18 Dec, 2023 @ 4:43am
[Need Help] Create Mod: districts get major bonus for each adjacent wonder
Hello,

I'm trying to write a mod which contains a Modifier "Holy Site get major bonus for each adjacent wonder".

I found the DistrictType of wonders is DISTRICT_WONDER. But there doesn't seem to be a ModifierType that makes district get bonus for adjacent wonders. Similarly there is MODIFIER_PLAYER_CITIES_DISTRICT_ADJACENCY, which only enables districts to get bonus for adjacent all types of districts.

I also found the Adjacency_YieldChanges table from "Theatre Adjacency Bonus to Wonders". Adding content there would make the "Holy Site get major bonus for each adjacent wonder" , but it is NOT a Modifier. so it could not make that only works on a specific civilization.

Any advice is much appreciated, thanks in advanced!
< >
Showing 1-1 of 1 comments
jmerry82 30 Mar, 2024 @ 7:36pm 
So the full definition of that theater square wonder adjacency (vanilla, taken from Districts.xml):

<Row ID="Wonder_Culture" Description="LOC_DISTRICT_WONDER_CULTURE" YieldType="YIELD_CULTURE" YieldChange="1" TilesRequired="1" AdjacentWonder="true"/>

The key here is that AdjacentWonder="true" element; that defines what tiles we're looking for to grant the adjacency. Wonders, in this case. AdjacentWonder is defined elsewhere, but as it's exactly the requirement we're looking for already, we just need to use it unaltered. Your new major faith adjacency for wonders:

<Row ID="name" Description="desc" YieldType="YIELD_FAITH" YieldChange="2" TilesRequired="1" AdjacentWonder="true"/>

Insert that row into the Adjacency_YieldChanges table (obviously applying your chosen internal ability name and description label), have your mod attach this new adjacency to the holy site under the appropriate circumstances (a mod civ, I'm guessing?), and you should be set.
< >
Showing 1-1 of 1 comments
Per page: 1530 50