[BNW] A Question About Yeild Modification

Proto_Noob

Chieftain
Joined
Jan 11, 2016
Messages
42
So, I am writing a mod (attached). The point of the mod is to reduce the default gold of a Trading Post to 0, then add one gold if each each of the following is true:

Next to a city
On a River
On the Coast
On a Road/Railroad

Additionally, I am not allowing Trading Post to be adjacent.

When I apply the attach mod to my game it seems to modify the yield of the TPs appropriately except in the case of whether it is on a road or not. Can anyone tell me why? Does the shown below not work for a reason?

[ C O D E ]
<Improvement_RouteYieldChanges>
<Row>
<ImprovementType>IMPROVEMENT_TRADING_POST</ImprovementType>
<YieldType>YIELD_GOLD</YieldType>
<Yield>1</Yield>
</Row>
</Improvement_RouteYieldChanges>
[ / C O D E ]
 

Attachments

Sorry everybody, figured it out. It was a stupid mistake. I forgot a line of code dictating the RouteType. The code above should be

[ C O D E ]
<Improvement_RouteYieldChanges>
<Row>
<ImprovementType>IMPROVEMENT_TRADING_POST</ImprovementType>
<RouteType>ROUTE_ROAD</RouteType>
<YieldType>YIELD_GOLD</YieldType>
<Yield>1</Yield>
</Row>
</Improvement_RouteYieldChanges>
[ / C O D E ]

As a side note how am I using the code brackets wrong? Is there a guide to formatting on this forum?
 
As a side note how am I using the code brackets wrong?

You need to remove the spaces; it should look like this:

fc2967c2ee.png
 
Back
Top Bottom