Disable critical hits during tests
This commit is contained in:
@ -444,10 +444,10 @@ class FightingEntity(Entity):
|
||||
"""
|
||||
Deals damage to the opponent, based on the stats
|
||||
"""
|
||||
diceroll = randint(0, 100)
|
||||
diceroll = randint(1, 100)
|
||||
damage = self.strength
|
||||
string = " "
|
||||
if diceroll <= self.critical: # It is a critical hit
|
||||
if diceroll <= self.critical: # It is a critical hit
|
||||
damage *= 4
|
||||
string = _(" It's a critical hit! ")
|
||||
return _("{name} hits {opponent}.")\
|
||||
|
Reference in New Issue
Block a user