Machiavelli24
Mod creator
- Joined
- May 9, 2012
- Messages
- 818
Mod name: Policies grant buildings
Description:
This mod provides a simple, flexible, extensible way in xml (no additional lua required) for any Social Policy to grant any buildings, including new buildings that can not be constructed.
By adding rows in the new Policy_FreeBuildingClass you can create Social Policies that grant Specialists or let food be kept between population growth.
This mod does not alter any existing files (with the sole exception of adding an 'Unbuildable_pb' column to the Buildings table) ensuring it will not require a manual merge to work with your mod.
The mod's xml folder contains 'Policy_FreeBuildingClassExample.xml' which has examples of what can be done.
Description:
This mod provides a simple, flexible, extensible way in xml (no additional lua required) for any Social Policy to grant any buildings, including new buildings that can not be constructed.
By adding rows in the new Policy_FreeBuildingClass you can create Social Policies that grant Specialists or let food be kept between population growth.
Code:
<Table name="Policy_FreeBuildingClass">
<Column name="PolicyType" reference="Policies(Type)" type="text"/>
<Column name="BuildingClassType" reference="BuildingClasses(Type)" type="text"/>
<Column name="IsRemovedWhenPolicyBlocked" type="boolean" default="true"/>
</Table>
This mod does not alter any existing files (with the sole exception of adding an 'Unbuildable_pb' column to the Buildings table) ensuring it will not require a manual merge to work with your mod.
The mod's xml folder contains 'Policy_FreeBuildingClassExample.xml' which has examples of what can be done.