diff --git a/monop_parser.py b/monop_parser.py index 18370d3..17f535a 100644 --- a/monop_parser.py +++ b/monop_parser.py @@ -679,13 +679,20 @@ class MonopParser: m = self.RENT_HOUSES_RE.match(msg) if m: + houses = int(m.group(1)) rent = int(m.group(2)) + # Update house count for this property (player just landed here) + if cp and 0 <= cp.location < 40: + g.property_houses[cp.location] = houses self._pay_rent(rent) return m = self.RENT_HOTEL_RE.match(msg) if m: rent = int(m.group(1)) + # Hotel = 5 houses + if cp and 0 <= cp.location < 40: + g.property_houses[cp.location] = 5 self._pay_rent(rent) return diff --git a/plugins/monop/monop_parser.py b/plugins/monop/monop_parser.py index 18370d3..17f535a 100644 --- a/plugins/monop/monop_parser.py +++ b/plugins/monop/monop_parser.py @@ -679,13 +679,20 @@ class MonopParser: m = self.RENT_HOUSES_RE.match(msg) if m: + houses = int(m.group(1)) rent = int(m.group(2)) + # Update house count for this property (player just landed here) + if cp and 0 <= cp.location < 40: + g.property_houses[cp.location] = houses self._pay_rent(rent) return m = self.RENT_HOTEL_RE.match(msg) if m: rent = int(m.group(1)) + # Hotel = 5 houses + if cp and 0 <= cp.location < 40: + g.property_houses[cp.location] = 5 self._pay_rent(rent) return