消耗打开

back_recharge
xuexinpeng 2022-04-22 19:18:02 +08:00
parent b12d63788b
commit 28e4676e90
2 changed files with 6 additions and 6 deletions

View File

@ -61,9 +61,9 @@ public class TransformationUpGradeHandler extends BaseHandler<HeroInfoProto.Tran
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE,"该卡片版本错误"); throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE,"该卡片版本错误");
} }
int[][] costItem = {{nextConfig.getExp()[0],nextConfig.getExp()[1]}}; int[][] costItem = {{nextConfig.getExp()[0],nextConfig.getExp()[1]}};
/* if(!ItemUtil.itemCost(user,costItem, BIReason.TRANSFORMATION_CARD_COST,1)){ if(!ItemUtil.itemCost(user,costItem, BIReason.TRANSFORMATION_CARD_COST,1)){
return; return;
}*/ }
info.setLevel(info.getLevel()+1); info.setLevel(info.getLevel()+1);
user.getHeroManager().putTransformationList(info); user.getHeroManager().putTransformationList(info);
int[][] dropItem = {nextConfig.getChangingForceExp()}; int[][] dropItem = {nextConfig.getChangingForceExp()};
@ -82,9 +82,9 @@ public class TransformationUpGradeHandler extends BaseHandler<HeroInfoProto.Tran
costMap.put(keyVal.getKey(),1); costMap.put(keyVal.getKey(),1);
} }
} }
/* if(!ItemUtil.itemCost(user, costMap, BIReason.TRANSFORMATION_CARD_COST,1)){ if(!ItemUtil.itemCost(user, costMap, BIReason.TRANSFORMATION_CARD_COST,1)){
return; return;
}*/ }
if (info != null){ if (info != null){
info.setStar(info.getStar()+ 1); info.setStar(info.getStar()+ 1);
user.getHeroManager().putTransformationList(info); user.getHeroManager().putTransformationList(info);

View File

@ -154,8 +154,8 @@ public class ChallengeLogic {
* *
*/ */
public void check() { public void check() {
status[0] = 1; status[0] = 0;
status[1] = 1; status[1] = 0;
//无尽副本星期1、3、5、7开启 //无尽副本星期1、3、5、7开启
//宝物副本星期2、4、6、7开启 //宝物副本星期2、4、6、7开启
int[][] config = {{1, 3, 5, 7}, {2, 4, 6, 7}}; int[][] config = {{1, 3, 5, 7}, {2, 4, 6, 7}};