Closed averbraeck closed 9 months ago
First adaptations have been made. We have to rethink the content of the player table, though, based on the newly available information from each player, which is far more fine-grained than the currently displayed information.
All columns from the design in issue #7 are there. The flood penalty has to be retrieved still, though.
The calculations in the columns of the first table are as follows:
player_satisfaction = player.current_personal_satisfaction - player.satisfaction_fluvial_penalty - player.satisfaction_pluvial_penalty - scenario.satisfaction_debt_penalty
(the last term only if start_debt
> 0. In other words: this is the net player satisfaction.debt_penalty = player.start_debt > 0 ? scenario.satisfaction_debt_penalty : 0
flood_penalty = player.satisfaction_fluvial_penalty + player.satisfaction_pluvial_penalty
total_satisfaction = player.current_personal_satisfaction + player.current_house_satisfaction
The table looks as follows:
Tests work fine. Table looks finished for now.
The
playerround
table has been severely modified, see https://github.com/averbraeck/housinggame-common/issues/3. The admin app should implement these changes.