From 232e3a117c51dd18fd8c0625d2a04db41b47f139 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Thu, 14 Nov 2024 01:08:22 +0100 Subject: [PATCH] corrected rent prices --- .../pp/monopoly/model/fields/BuildingProperty.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/model/fields/BuildingProperty.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/model/fields/BuildingProperty.java index 9518ded..1e2dcc7 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/model/fields/BuildingProperty.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/model/fields/BuildingProperty.java @@ -14,17 +14,17 @@ public class BuildingProperty extends PropertyField { @Override protected int calcRent() { if (hotel) { - return (int) Math.round(rent*4.95*2.93*2.67*1.35*1.26); + return (int) Math.round(rent*70/10)*10; } switch (houses) { case 1: - return (int) Math.round(rent*4.95); + return (int) Math.round(rent*5/10)*10; case 2: - return (int) Math.round(rent*4.95*2.93); + return (int) Math.round(rent*15/10)*10; case 3: - return (int) Math.round(rent*4.95*2.93*2.67); + return (int) Math.round(rent*40/10)*10; case 4: - return (int) Math.round(rent*4.95*2.93*2.67*1.35); + return (int) Math.round(rent*55/10)*10; default: return rent;