Hydromancerx
C2C Modder
Properties not being modular is a very broad statement that should not be the case in that generality (except by bug). Likely we are just talking about inheritance semantics that are easy to change.
Please specify what XML exactly you tried and what you expected to happen and what instead happened.
Here is an example of a modular piece of code.
Code:
<BuildingInfo>
<BuildingClass>BUILDINGCLASS_POLLUTION_SMOG1</BuildingClass>
<Type>BUILDING_POLLUTION_SMOG1</Type>
<PropertyManipulators>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
<PropertyType>PROPERTY_TOURISM</PropertyType>
<iAmountPerTurn>-1</iAmountPerTurn>
</PropertySource>
</PropertyManipulators>
</BuildingInfo>
And then here is the part of the code from the original building.
Code:
<PropertyManipulators>
<PropertySource>
<PropertySourceType>PROPERTYSOURCE_CONSTANT</PropertySourceType>
<PropertyType>PROPERTY_DISEASE</PropertyType>
<iAmountPerTurn>5</iAmountPerTurn>
</PropertySource>
</PropertyManipulators>
If the top file is placed last then it will show -1 Tourism on the building. If the bottom file is placed last then +5 Disease is shown on the building.