From b8110ebf36451c571965942dd11c1ee5c448391b Mon Sep 17 00:00:00 2001 From: Cezary Adamczak Date: Thu, 3 Jun 2021 16:07:33 +0200 Subject: [PATCH] Zaktualizuj 'field.py' --- field.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/field.py b/field.py index 6f2f865..b4b19b9 100644 --- a/field.py +++ b/field.py @@ -24,10 +24,11 @@ class Field(pygame.sprite.Sprite): self.position = [row, column] self.hydration = 0 self.planted = 0 - self.ferility = 1 + self.fertility = 1 + self.tractor_there = False def hydrate(self): - if self.field_type == "soil" and self.hydration <= 4: + if self.field_type == "soil" and self.hydration <= 5: self.hydration += 1 if self.hydration == 0: self.surf.fill(BROWN0) @@ -37,7 +38,7 @@ class Field(pygame.sprite.Sprite): self.surf.fill(BROWN2) if self.hydration == 3: self.surf.fill(BROWN3) - if self.hydration == 4: + if self.hydration == 4 or self.hydration == 5: self.surf.fill(BROWN4) def dehydrate(self): @@ -51,7 +52,7 @@ class Field(pygame.sprite.Sprite): self.surf.fill(BROWN2) if self.hydration == 3: self.surf.fill(BROWN3) - if self.hydration == 4: + if self.hydration == 4 or self.hydration == 5: self.surf.fill(BROWN4) def free(self):