fix: add missing prediction attribute to Tile class
This commit is contained in:
parent
7c1814630a
commit
a2c0137ddd
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user