♻️ use console ui

This commit is contained in:
2026-07-19 17:48:09 +02:00
parent fe5b5890b2
commit 33052979f0
2 changed files with 22 additions and 16 deletions
+6 -2
View File
@@ -20,6 +20,7 @@ class Level:
logger.debug("Level Loaded")
def combat(self, mob, player):
pvs = []
while mob.current_pv > 0 and player.current_pv > 0:
if mob.speed > player.speed:
mob.perform_attack(player)
@@ -27,5 +28,8 @@ class Level:
else:
player.perform_attack(mob)
mob.perform_attack(player)
print(f"{player.name} - {player.current_pv} PV")
print(f"{mob.name} - {mob.current_pv} PV")
pvs.append({
'player': player.current_pv,
'mob': mob.current_pv
})
return pvs