mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-24 23:59:44 +01:00
corrected rent prices
This commit is contained in:
parent
3668382911
commit
232e3a117c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user