From 0acb23ab8b4d2187b19ab78e49ab314bc64c586a Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Tue, 3 Dec 2024 01:09:00 +0100 Subject: [PATCH] price settings --- .../src/main/java/pp/monopoly/client/gui/popups/SellHouse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/SellHouse.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/SellHouse.java index 38d09b2..bfe9e6b 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/SellHouse.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/SellHouse.java @@ -231,7 +231,7 @@ public class SellHouse extends Dialog { int cost = 0; for (String s : selectedProperties) { - cost += ((BuildingProperty) app.getGameLogic().getBoardManager().getFieldByName(s)).getHousePrice(); + cost += ((BuildingProperty) app.getGameLogic().getBoardManager().getFieldByName(s)).getHousePrice() / 2; } String display = String.join(" | ", selectedProperties);