refactor(tractor): use icons to print statements in console log
This commit is contained in:
parent
2658f77669
commit
5baf1c3a3d
@ -40,10 +40,11 @@ class Tractor(pygame.sprite.Sprite):
|
||||
curent_tile = self.get_current_tile()
|
||||
water_needed = ile_podlac(curent_tile.type, curent_tile.faza)[0]['Woda']
|
||||
if self.water >= water_needed:
|
||||
print(f"watered {curent_tile.type} with {water_needed} liters\n")
|
||||
print(f"💦 watered {curent_tile.type} with {water_needed} liters\n")
|
||||
self.water -= water_needed
|
||||
else:
|
||||
print(f"{water_needed - self.water} more litres of water needed to water {curent_tile.type}\n")
|
||||
print(f"❗ {water_needed - self.water} more litres of water needed to water {curent_tile.type}\n")
|
||||
|
||||
|
||||
def update(self):
|
||||
keys = pygame.key.get_pressed()
|
||||
@ -64,7 +65,7 @@ class Tractor(pygame.sprite.Sprite):
|
||||
x = self.rect.x // TILE_SIZE
|
||||
y = self.rect.y // TILE_SIZE
|
||||
tile_type = self.field.tiles.sprites()[y * 16 + x].type
|
||||
print(f"The tractor is on a {tile_type} tile.")
|
||||
print(f"🧭 the tractor is on a {tile_type} tile")
|
||||
|
||||
|
||||
def get_current_tile(self):
|
||||
|
Loading…
Reference in New Issue
Block a user