等级上限容错
parent
bbf63c4918
commit
c766cc8622
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue