corrected rent prices

This commit is contained in:
Johannes Schmelz 2024-11-14 01:08:22 +01:00
parent 3668382911
commit 232e3a117c

View File

@ -14,17 +14,17 @@ public class BuildingProperty extends PropertyField {
@Override @Override
protected int calcRent() { protected int calcRent() {
if (hotel) { 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) { switch (houses) {
case 1: case 1:
return (int) Math.round(rent*4.95); return (int) Math.round(rent*5/10)*10;
case 2: case 2:
return (int) Math.round(rent*4.95*2.93); return (int) Math.round(rent*15/10)*10;
case 3: case 3:
return (int) Math.round(rent*4.95*2.93*2.67); return (int) Math.round(rent*40/10)*10;
case 4: case 4:
return (int) Math.round(rent*4.95*2.93*2.67*1.35); return (int) Math.round(rent*55/10)*10;
default: default:
return rent; return rent;