Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public CalculateFigures() {
- // Note: buildings will be updated when building on TileMap or when another building within range will be built.
- // So buildings get stored in an object with bool value. The following functions do NOT check whole tilemap.
- Calculate apartment trend (are requested building in range?, is within a range of -3 and +3)
- Calculate apartment satisfaction (do people move in or out, dependent on trend)
- Calculate violence factor (the higher the value is the more the violence raise -> apartments can burn)
- Children rate (simple calculation, checks if special kind of building are in range)
- Children potential (will children be smart or not, dependent on satisfaction and buildings in range)
- Spawn car driving to building (to make new people move into house)
Add Comment
Please, Sign In to add comment