灵兽升级

back_recharge
lvxinran 2020-10-21 15:30:47 +08:00
parent 64744bb3bb
commit c78f778881
1 changed files with 6 additions and 1 deletions

View File

@ -2167,7 +2167,12 @@ public class HeroLogic{
if(sSpiritAnimalLevel==null){
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
}
int[][] consume = sSpiritAnimalLevel.getConsume();
if(consume!=null&&consume.length>0){
for(int[] consumeOne:consume){
costMap.put(consumeOne[0],costMap.getOrDefault(consumeOne[0],0)+consumeOne[1]);
}
}
boolean b = ItemUtil.checkCost(user, costMap);
if(!b){
break;