Skip to content

Value limits#

Game automatically enforces certain limits on attributes irrespective of what value is actually supplied in the Json definition.

These attributes include, but are not limited to are water, power and influences.

Water and power limits#

Let \(S\) be the building area and \(P\) the monthly price. The resource limit is determined by the lower bound of an area factor, a price factor, and a hard cap:

\[ \text{Max Value} = \min(S \cdot C_s, (P \cdot C_p) + C_o, C_{max}) \]

Where the constants apply to each resource respectively:

  • \(C_s\): Maximum resource per unit of area
  • \(C_p\): Maximum resource per unit of monthly price
  • \(C_o\): Resource offset value
  • \(C_{max}\): Absolute maximum resource cap

You may use the graph below to visualize how adjustments to building area (\(S\)) and monthly price (\(P\)) impact the final maximum value.

Influence limits#

Buildings have supported and unsupported influences. For example, a "health" influence is supported on a medical building, but unsupported on a police station. Unsupported influences are heavily penalized.

Like before, let \(S\) be the building area and \(P\) the monthly price. The maximum influence value is calculated as:

\[ \text{Max Value} = \min(\frac{C_p \cdot min(P, C_{pmax})}{S} + C_o, C_{max}) \]

Where the constants represent:

  • \(C_p\): Maximum value per unit of monthly price
  • \(C_{pmax}\): Maximum monthly price cap that affects the calculation
  • \(C_o\): Value offset
  • \(C_{max}\): Absolute maximum value cap

You may use the graph below to visualize how adjustments to building area (\(S\)) and monthly price (\(P\)) impact the final maximum value.