mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-19 02:36:14 +01:00
fixed sell house payment
This commit is contained in:
parent
cb0788e44c
commit
aa86c25e7c
@ -412,7 +412,7 @@ public class ServerGameLogic implements ClientInterpreter {
|
|||||||
for (BuildingProperty field : properties.stream().map(p -> (BuildingProperty) p).collect(Collectors.toList())) {
|
for (BuildingProperty field : properties.stream().map(p -> (BuildingProperty) p).collect(Collectors.toList())) {
|
||||||
if (boardManager.canSell(field)) {
|
if (boardManager.canSell(field)) {
|
||||||
field.sell();
|
field.sell();
|
||||||
sender.earnMoney(field.getHousePrice());
|
sender.earnMoney(field.getHousePrice() / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user