Closed averbraeck closed 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.
playerround.cost_measures_bought
cost_house_measures_bought
cost_personal_measures_bought
The player app should store these costs separately when the buying of measures has been confirmed by the player.
Player app adapted to split costs.
The budget screen shows the following now:
A player who buys both personal and house improvements:
Confirmation:
Budget:
Satisfaction is also correctly updated:
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 incost_house_measures_bought
, and the personal measures are stored incost_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.