# Difference between revisions of "Category:Morale Buildings"

From Hazeron Wiki

m |
m (Fixed math.) |
||

Line 10: | Line 10: | ||

<code>t = threshold</code><BR> | <code>t = threshold</code><BR> | ||

<code>r = required</code><BR><BR> | <code>r = required</code><BR><BR> | ||

− | <code>r = p >= t ? | + | <code>r = p >= t ? max(floor(population/(t*3)), 1) : 0</code> |

This produces a step pattern like this: t, t*2, t*3, t*3, t*3... | This produces a step pattern like this: t, t*2, t*3, t*3, t*3... |

## Latest revision as of 18:59, 26 June 2022

Unofficial category. Contains all buildings that have to do with city morale.

This table shows each morale building and the math for finding the required amount of professional jobs.

The first building is required when the population reaches the threshold. Additional buildings are required based upon the formula shown.

Here is the math, expressed like a one-line if in C++. i.e. When p >= t, the formula is used and when p < t the result is 0.

`p = population`

`t = threshold`

`r = required`

`r = p >= t ? max(floor(population/(t*3)), 1) : 0`

This produces a step pattern like this: t, t*2, t*3, t*3, t*3...

Building | Threshold City | Math City | Threshold Base | Math Base |
---|---|---|---|---|

Arena | 175 | Required = floor(Population / 525) | n/a | Required = 0 |

Cantina | 50 | Required = floor(Population / 150) | 50 | Required = floor(Population / 150) |

Casino | 200 | Required = floor(Population / 600) | n/a | Required = 0 |

Church | 45 | Required = floor(Population / 135) | n/a | Required = 0 |

Grocery | 100 | Required = floor(Population / 300) | n/a | Required = 0 |

Hospital | 80 | Required = floor(Population / 240) | n/a | Required = 0 |

Park | 90 | Required = floor(Population / 270) | n/a | Required = 0 |

Retail Store | 55 | Required = floor(Population / 165) | 55 | Required = floor(Population / 165) |

University | 70 | Required = floor(Population / 210) | 250 | Required = floor(Population / 750) |

Zoo | 150 | Required = floor(Population / 450) | n/a | Required = 0 |

## Pages in category "Morale Buildings"

The following 10 pages are in this category, out of 10 total.

## A## C |
## G## H## P## R |
## U## Z |