fixed sell house payment

This commit is contained in:
Johannes Schmelz 2024-12-03 00:30:54 +01:00
parent cb0788e44c
commit aa86c25e7c

View File

@ -412,7 +412,7 @@ public class ServerGameLogic implements ClientInterpreter {
for (BuildingProperty field : properties.stream().map(p -> (BuildingProperty) p).collect(Collectors.toList())) {
if (boardManager.canSell(field)) {
field.sell();
sender.earnMoney(field.getHousePrice());
sender.earnMoney(field.getHousePrice() / 2);
}
}
}