Donnervogel
Chieftain
- Joined
- Jan 5, 2023
- Messages
- 4
I'm working on a civilization mod, with the plan being to have units heal for more when in or adjacent to a district with the civ's unique building (a Shrine replacement).
I found the code for the God of Healing pantheon to see how it checks for adjacency, using the Requirement Set defined below:
<RequirementSetId>PLOT_ADJACENT_INCLUDE_HOLY_SITE</RequirementSetId>
<RequirementId>REQUIRES_PLOT_ADJACENT_HOLY_SITE</RequirementId>
I just wasn't sure how to adapt this so as to create a Requirement Set that checks for the adjacent building, rather than the district. Would anyone know how to go about that? Also, would I need to create a new check for the unique building, or could I have it check for the original building that's being replaced? And would the adjacency check include the district itself, or just the tiles next to it?
EDIT: I found the “REQUIREMENT_PLOT_ADJACENT_BUILDING_TYPE_MATCHES” RequirementType that seems like it would help here, but I can't get my code working still
I found the code for the God of Healing pantheon to see how it checks for adjacency, using the Requirement Set defined below:
<RequirementSetId>PLOT_ADJACENT_INCLUDE_HOLY_SITE</RequirementSetId>
<RequirementId>REQUIRES_PLOT_ADJACENT_HOLY_SITE</RequirementId>
I just wasn't sure how to adapt this so as to create a Requirement Set that checks for the adjacent building, rather than the district. Would anyone know how to go about that? Also, would I need to create a new check for the unique building, or could I have it check for the original building that's being replaced? And would the adjacency check include the district itself, or just the tiles next to it?
EDIT: I found the “REQUIREMENT_PLOT_ADJACENT_BUILDING_TYPE_MATCHES” RequirementType that seems like it would help here, but I can't get my code working still
Last edited: