Disable player stats lowering for A* test

This commit is contained in:
Michał Czekański 2020-04-26 14:08:38 +02:00
parent 0151413cdd
commit a5569f0b8f

View File

@ -44,7 +44,7 @@ class Player(Entity):
self.movePoints += 1 self.movePoints += 1
# You can only move if you have enough stamina # You can only move if you have enough stamina
if self.statistics.stamina > 1: if self.statistics.stamina > 1:
self.applyWalkingFatigue() # self.applyWalkingFatigue() # COMMENTED FOR A_START TEST
if self.rotation.value == Rotations.NORTH.value: if self.rotation.value == Rotations.NORTH.value:
self.rect.y -= self.rect.w self.rect.y -= self.rect.w
elif self.rotation.value == Rotations.EAST.value: elif self.rotation.value == Rotations.EAST.value:
@ -127,7 +127,7 @@ class Player(Entity):
if self.alive: if self.alive:
self.timeAlive += self.timer.get_time() self.timeAlive += self.timer.get_time()
# Player gets tired every once in a while # Player gets tired every once in a while
self.applyTimeFatigue(self.timer.get_time()) #self.applyTimeFatigue(self.timer.get_time()) # COMMENTED FOR A_STAR_TEST
self.timer.tick() self.timer.tick()
self.determineLife() self.determineLife()