From: Neil Date: Fri, 9 Sep 2016 19:04:03 +0000 (+0200) Subject: Flake8 X-Git-Tag: tabakrolletjie-v1.0.0~159^2~2 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=d16507c49b10bdcfc70aa6f813182ec26a4be2da;p=tabakrolletjie.git Flake8 --- diff --git a/tabakrolletjie/scenes/day.py b/tabakrolletjie/scenes/day.py index c280702..5674ab2 100644 --- a/tabakrolletjie/scenes/day.py +++ b/tabakrolletjie/scenes/day.py @@ -61,7 +61,7 @@ class DayScene(BaseScene): brightness = brightness.convert_alpha() brightness.fill((255, 255, 255, 50)) surface.blit(brightness, (0, 0)) - + for turnip in self._turnips: turnip.render(surface) self._lights.render_light(surface) @@ -122,7 +122,7 @@ class DayScene(BaseScene): def _update_toolbar(self, gamestate): text = ("Turnip Stocks: Seeds: %d. Planted: %d. " - "Harvested: %d. Destroyed: %d" % + "Harvested: %d. Destroyed: %d" % (self._seeds, len(self._turnips), self._harvested, gamestate.eaten)) self._toolbar = self._toolbar_font.render(text, True, (255, 255, 255)) diff --git a/tabakrolletjie/scenes/night.py b/tabakrolletjie/scenes/night.py index fe1fae3..ffc2ee9 100644 --- a/tabakrolletjie/scenes/night.py +++ b/tabakrolletjie/scenes/night.py @@ -33,7 +33,7 @@ class NightScene(BaseScene): darkness = darkness.convert_alpha() darkness.fill((0, 0, 0, 150)) surface.blit(darkness, (0, 0)) - + self._mould.render(surface) for turnip in self._turnips[:]: