满级校验

lvxinran 2020-10-10 13:30:27 +08:00
parent c264817928
commit e73992d1d3
1 changed files with 3 additions and 0 deletions

View File

@ -712,6 +712,9 @@ public class ItemUtil {
if (levelConfig != null) {
//需要先确定下每级真实需要的经验,与客户端实现方式同步,认为表里填的升到下一级所需经验是前边各级经验总和
int[][] integral = levelConfig.getIntegral();
if(integral==null||integral.length<=0||integral[0].length<=0){
return;
}
STreasureSunlongConfig lastLevelConfig = STreasureSunlongConfig.levelTreasureConfigMap.get(activity.getId()).get(levelConfig.getLevel() - 1);
int[][] costItems = integral;
if (lastLevelConfig != null) {