🏗️ ♻️ restructuration du projet et refactoring #3
+2
-2
@@ -3,7 +3,7 @@ import random
|
||||
import mobs_utils
|
||||
|
||||
|
||||
class Level():
|
||||
class Level:
|
||||
""" Class Level """
|
||||
|
||||
def __init__(self, difficulty, player):
|
||||
@@ -20,7 +20,7 @@ class Level():
|
||||
print("Level Loaded")
|
||||
|
||||
def combat(self, mob, player):
|
||||
while (mob.current_pv > 0 and player.current_pv > 0):
|
||||
while mob.current_pv > 0 and player.current_pv > 0:
|
||||
if mob.speed > player.speed:
|
||||
mob.perform_attack(player)
|
||||
player.perform_attack(mob)
|
||||
|
||||
Reference in New Issue
Block a user