This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
designer_workshop:proposed:factory_caps [2013/09/07 14:30] M57 |
designer_workshop:proposed:factory_caps [2013/10/26 09:33] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Factory Caps ====== | ====== Factory Caps ====== | ||
- | The normal bonus is calculated for the factory. | + | The normal bonus is calculated for the factory. |
- | So if the cap is 5, the factory gives +3 and the territory | + | Here are cases. |
- | The only case of potential interest which is not addressed is the case of a negative | + | A negative cap works similarly. |
+ | |||
+ | Here is slightly non-obvious code to implement | ||
< | < | ||
if (factoryBonus + territoryUnits) > factoryMax: | if (factoryBonus + territoryUnits) > factoryMax: | ||
- | factoryBonus | + | factory_bonus |
</ | </ |