averbraeck / housinggame-player

Player app for the housing game
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Split cost of house measures and personal measures in database #67

Closed averbraeck closed 2 months ago

averbraeck commented 2 months ago

The field playerround.cost_measures_bought contains the costs for both the house measures and the personal measures. This will be split in the database, where the house measure costs are stored in cost_house_measures_bought, and the personal measures are stored in cost_personal_measures_bought. See https://github.com/averbraeck/housinggame-common/issues/42 and https://github.com/averbraeck/housinggame-common/issues/43.

The player app should store these costs separately when the buying of measures has been confirmed by the player.

averbraeck commented 2 months ago

Player app adapted to split costs.

averbraeck commented 2 months ago

The budget screen shows the following now:

image

averbraeck commented 2 months ago

A player who buys both personal and house improvements:

image

Confirmation:

image

Budget:

image

averbraeck commented 2 months ago

Satisfaction is also correctly updated:

image