Afforess
The White Wizard
Resource Refinement
Sarkyn's Horse stud module inspired yet another idea. Cities should be able to refine the resources in the vicinity of their usable area (the cross-like section) to produce more. Especially since many resources that are valuable in Rise of Mankind are also rare. That way, if you have access to the only stone on the map, you can increase your stone production so you can trade it for other rare resources without losing access to it. This idea was made possible by the SDK changes in Shqype's Vicinity Mod.
Also note that this addon is only partially modular. It will overwrite the existing CvGameCore.dll.
For Modders:
Spoiler :
The SDK changes add the following lines the Civ4BuildingsInfo.xml file
Code:
<VicinityBonus>BONUS_XYZ</VicinityBonus>
Code:
<PrereqVicinityBonuses>
<VicinityBonus>BONUS_XYZ</VicinityBonus>
<VicinityBonus>BONUS_YZX</VicinityBonus>
<VicinityBonus>BONUS_ZYX</VicinityBonus>
</PrereqVicinityBonuses>
The SDK changes also add the following lines of code to the UnitInfos.xml file. I didn't use any of them, but will include an updated schema for them, in case others have ideas.
Code:
<VicinityBonus>BONUS_XYZ</VicinityBonus>
Code:
<PrereqVicinityBonuses>
<VicinityBonus>BONUS_XYZ</VicinityBonus>
<VicinityBonus>BONUS_YZX</VicinityBonus>
<VicinityBonus>BONUS_ZYX</VicinityBonus>
</PrereqVicinityBonuses>
They basically are the same code, but for units instead of buildings. That way, swordsman, theoritically could only be built in a city next to Iron. I don't use the modified UnitInfos code in this addon, but feel free to in yours. Just make sure to include the updated CvGameCore.dll I provide
These building are just like regular buildings, except that they can only be built if the required resource is in the city's vicinity.
New Buildings:
Bauxite Strip mine
- Requires Bauxite in Vicinity
- Produces 2 Bauxite Resource
- +2 unhealthiness
- +20% Maintenance
- Requires Coal in Vicinity
- Produces 2 Coal Resource
- +2 unhealthiness
- +20% Maintenance
- Requires Copper in Vicinity
- Produces 2 Copper Resource
- +2 unhealthiness
- +20% Maintenance
- Requires Iron in Vicinity
- Produces 2 Iron Resource
- +2 unhealthiness
- +20% Maintenance
- Requires Oil in Vicinity
- Produces 2 Oil Resource
- +2 unhealthiness
- +20% Maintenance
- Requires Stone in Vicinity
- Produces 2 Stone Resource
- +2 unhealthiness
- +20% Maintenance
- Requires Uranium in Vicinity
- Produces 2 Uranium Resource
- +2 unhealthiness
- +20% Maintenance
- Requires Marble in Vicinity
- Produces 2 Marble Resource
- +2 unhealthiness
- +20% Maintenance
- Requires Gems in Vicinity
- Produces 1 Gems Resource
- +1 unhealthiness
- +30% Maintenance
- Requires Gold in Vicinity
- Produces 1 Gold Resource
- +30% Maintenance
- +2 Unhealthiness
- Requires Silver in Vicinity
- Produces 1 Silver Resource
- +30% Maintenance
- +2 Unhealthiness
- Requires Sugar in Vicinity
- Produces 2 Sugar Resource
- +30% Maintenance
- +1 Unhappiness
- Requires Sulphur in Vicinity
- Produces 2 Sulpher Resource
- +15% Maintenance
- +3 Unhealthiness
Any other rare resources that should be included? Any other comments or suggestions?
Download Here