法相升级bug修改
parent
a6d7f97a43
commit
35289f9038
|
@ -141,7 +141,7 @@ public class EquipLogic {
|
||||||
|
|
||||||
HashMap<Integer, Long> costMap = new HashMap<>();
|
HashMap<Integer, Long> costMap = new HashMap<>();
|
||||||
int num = faxiang.getStrongLv();
|
int num = faxiang.getStrongLv();
|
||||||
while (num == targetLv){
|
while (num < targetLv){
|
||||||
SFaxiangLevelConfig levelConfig = levelConfigMap.get(num);
|
SFaxiangLevelConfig levelConfig = levelConfigMap.get(num);
|
||||||
if (levelConfig == null || levelConfig.getPropList() == null){
|
if (levelConfig == null || levelConfig.getPropList() == null){
|
||||||
throw new ErrorCodeException(ErrorCode.CFG_NULL,"SFaxiangLevelConfig 配置表不存在,或升级道具为空, level等级:"+num);
|
throw new ErrorCodeException(ErrorCode.CFG_NULL,"SFaxiangLevelConfig 配置表不存在,或升级道具为空, level等级:"+num);
|
||||||
|
@ -176,7 +176,7 @@ public class EquipLogic {
|
||||||
HashMap<Integer, Long> costMap = new HashMap<>();
|
HashMap<Integer, Long> costMap = new HashMap<>();
|
||||||
StringBuilder equipCostStr = new StringBuilder();
|
StringBuilder equipCostStr = new StringBuilder();
|
||||||
int num = faxiang.getStar();
|
int num = faxiang.getStar();
|
||||||
while (num == targetLv){
|
while (num < targetLv){
|
||||||
SFaxiangStarConfig starConfig = starConfigMap.get(num);
|
SFaxiangStarConfig starConfig = starConfigMap.get(num);
|
||||||
if (starConfig == null || starConfig.getPropList() == null){
|
if (starConfig == null || starConfig.getPropList() == null){
|
||||||
throw new ErrorCodeException(ErrorCode.CFG_NULL,"SFaxiangLevelConfig 配置表不存在,或升级道具为空, level等级:"+num);
|
throw new ErrorCodeException(ErrorCode.CFG_NULL,"SFaxiangLevelConfig 配置表不存在,或升级道具为空, level等级:"+num);
|
||||||
|
|
Loading…
Reference in New Issue