新将伤害溢出问题
parent
fbdad03acd
commit
0e9e5e6502
|
@ -105,6 +105,8 @@ public class NewGeneralAttackHandler extends BaseHandler<ActivityProto.NewGenera
|
|||
String blood = numberFormat.format((float) checkResult[1] / (float)bossBlood);
|
||||
// 表里面配置的伤害是万分比,所以这里的概率乘以10000
|
||||
float b = Float.parseFloat(blood)*10000;
|
||||
// 伤害可能溢出
|
||||
b = b > 10000?10000:b;
|
||||
|
||||
// 获取奖励id
|
||||
int[] dropList = new int[1];
|
||||
|
|
Loading…
Reference in New Issue