|
|
|
@ -139,7 +139,7 @@ let Fight = {
@@ -139,7 +139,7 @@ let Fight = {
|
|
|
|
|
return strength / 10 * level; |
|
|
|
|
}, |
|
|
|
|
getLeftHpPercent(character) { |
|
|
|
|
return character.currentFighter.hpLeft / 100 * character.currentFighter.hp; |
|
|
|
|
return character.currentFighter.hpLeft * 100 / character.currentFighter.hp; |
|
|
|
|
}, |
|
|
|
|
getColorForHealthBar(percent) { |
|
|
|
|
if (percent > 52) { |
|
|
|
|