Vacuum takes more than 100%

This commit is contained in:
Mateusz Dokowicz 2023-05-25 16:23:56 +02:00
parent ae838bbbc5
commit 3dcd5db03d

View File

@ -24,7 +24,7 @@ class VacuumMoveCommand(Command):
tmp = self.world.is_garbage_at(end_x, end_y) tmp = self.world.is_garbage_at(end_x, end_y)
if len(tmp) > 0: if len(tmp) > 0:
for t in tmp: for t in tmp:
if self.vacuum.get_container_filling() < 1000: if self.vacuum.get_container_filling() < 100:
self.vacuum.increase_container_filling() self.vacuum.increase_container_filling()
self.world.dust[end_x][end_y].remove(t) self.world.dust[end_x][end_y].remove(t)