master #1

Merged
s444427 merged 39 commits from s452664/Sztuczna_Inteligencja-projekt:master into master 2021-06-03 16:39:57 +02:00
Showing only changes of commit b8110ebf36 - Show all commits

View File

@ -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):