fix switch statement logic

pull/33/head
LaukkaE 2024-04-04 12:57:49 +03:00 committed by Samuel H
parent 075db8ae0c
commit 785e7c14b5
1 changed files with 10 additions and 10 deletions

View File

@ -1540,20 +1540,20 @@ export class LowHpPowerAttr extends VariablePowerAttr {
const hpRatio = user.getHpRatio();
switch (true) {
case (hpRatio < 0.6875):
power.value = 40;
break;
case (hpRatio < 0.3542):
power.value = 80;
break;
case (hpRatio < 0.2083):
power.value = 100;
case (hpRatio < 0.0417):
power.value = 200;
break;
case (hpRatio < 0.1042):
power.value = 150;
break;
case (hpRatio < 0.0417):
power.value = 200;
case (hpRatio < 0.2083):
power.value = 100;
break;
case (hpRatio < 0.3542):
power.value = 80;
break;
case (hpRatio < 0.6875):
power.value = 40;
break;
default:
power.value = 20;