♻️ use console ui
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user