🎨 rm parenthesis
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ import random
|
|||||||
import mobs_utils
|
import mobs_utils
|
||||||
|
|
||||||
|
|
||||||
class Level():
|
class Level:
|
||||||
""" Class Level """
|
""" Class Level """
|
||||||
|
|
||||||
def __init__(self, difficulty, player):
|
def __init__(self, difficulty, player):
|
||||||
@@ -20,7 +20,7 @@ class Level():
|
|||||||
print("Level Loaded")
|
print("Level Loaded")
|
||||||
|
|
||||||
def combat(self, mob, player):
|
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:
|
if mob.speed > player.speed:
|
||||||
mob.perform_attack(player)
|
mob.perform_attack(player)
|
||||||
player.perform_attack(mob)
|
player.perform_attack(mob)
|
||||||
|
|||||||
Reference in New Issue
Block a user