fix: add missing prediction attribute to Tile class

This commit is contained in:
Wojciech Kubicki 2024-06-09 18:45:52 +02:00
parent 7c1814630a
commit a2c0137ddd

View File

@ -22,13 +22,15 @@ class Tile(pygame.sprite.Sprite):
print('tile type set as', tile_type) print('tile type set as', tile_type)
if self.type == 'water': if self.type == 'water':
self.stage = 'no_plant' self.stage = 'no_plant'
self.prediction = 'water'
self.water_level = 100 self.water_level = 100
elif self.type == 'grass': elif self.type == 'grass':
self.stage = 'no_plant' self.stage = 'no_plant'
self.prediction = 'grass'
self.water_level = random.randint(1, 5) * 10 self.water_level = random.randint(1, 5) * 10
else: else:
self.stage = 'planted'
self.stage = 'planted' # wczesniej to była self.faza = 'posadzono' ale stwierdzilem ze lepiej po angielsku??? self.stage = 'planted' # wczesniej to była self.faza = 'posadzono' ale stwierdzilem ze lepiej po angielsku???
self.water_level = random.randint(1, 5) * 10
classes = [ classes = [
"bób", "brokuł", "brukselka", "burak", "cebula", "bób", "brokuł", "brukselka", "burak", "cebula",