等级上限容错

back_recharge
duhui 2021-03-05 16:59:25 +08:00
parent bbf63c4918
commit c766cc8622
1 changed files with 5 additions and 0 deletions

View File

@ -619,6 +619,11 @@ public class ExpeditionLogic {
Map<String, Double> bossHP = new HashMap<>(); Map<String, Double> bossHP = new HashMap<>();
// 获取对应等级的机器人信息 // 获取对应等级的机器人信息
SRobotProperty property = STableManager.getConfig(SRobotProperty.class).get(level); SRobotProperty property = STableManager.getConfig(SRobotProperty.class).get(level);
if (property == null){
Map<Integer, SRobotProperty> config = STableManager.getConfig(SRobotProperty.class);
// 玩家等级超上限,取表里最大值
property = config.get(config.values().size());
}
// 英雄属性 // 英雄属性
Map<Integer, Integer> robotHeroAttribute = HeroLogic.getInstance().calRobotHeroAttribute(property); Map<Integer, Integer> robotHeroAttribute = HeroLogic.getInstance().calRobotHeroAttribute(property);