From aa86c25e7c09be79241d285ae47da7efb9c74658 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Tue, 3 Dec 2024 00:30:54 +0100 Subject: [PATCH] fixed sell house payment --- .../src/main/java/pp/monopoly/game/server/ServerGameLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java index c74afe7..4c78a36 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java @@ -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); } } }