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;