mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-02-22 22:49:36 +01:00
fixed Miete popup
This commit is contained in:
parent
1f37eb9962
commit
8d638158e4
@ -347,8 +347,8 @@ public class Player implements FieldVisitor<Void>{
|
|||||||
int rent = field.calcRent();
|
int rent = field.calcRent();
|
||||||
field.getOwner().earnMoney(rent);
|
field.getOwner().earnMoney(rent);
|
||||||
pay(rent);
|
pay(rent);
|
||||||
sendRentNotification("rent", field.getOwner(), rent);
|
sendRentNotification("ReceivedRent", field.getOwner(), rent);
|
||||||
sendRentNotification("ReceivedRent", this, rent);
|
sendRentNotification("rent", this, rent);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -365,8 +365,8 @@ public class Player implements FieldVisitor<Void>{
|
|||||||
int rent = rollResult.calcTotal()*factor;
|
int rent = rollResult.calcTotal()*factor;
|
||||||
field.getOwner().earnMoney(rent);
|
field.getOwner().earnMoney(rent);
|
||||||
pay(rent);
|
pay(rent);
|
||||||
sendRentNotification("rent", field.getOwner(), rent);
|
sendRentNotification("ReceivedRent", field.getOwner(), rent);
|
||||||
sendRentNotification("ReceivedRent", this, rent);
|
sendRentNotification("rent", this, rent);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -380,8 +380,8 @@ public class Player implements FieldVisitor<Void>{
|
|||||||
|
|
||||||
field.getOwner().earnMoney(rent);
|
field.getOwner().earnMoney(rent);
|
||||||
pay(rent);
|
pay(rent);
|
||||||
sendRentNotification("rent", field.getOwner(), rent);
|
sendRentNotification("ReceivedRent", field.getOwner(), rent);
|
||||||
sendRentNotification("ReceivedRent", this, rent);
|
sendRentNotification("rent", this, rent);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user