消耗打开
parent
b12d63788b
commit
28e4676e90
|
|
@ -61,9 +61,9 @@ public class TransformationUpGradeHandler extends BaseHandler<HeroInfoProto.Tran
|
|||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE,"该卡片版本错误");
|
||||
}
|
||||
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;
|
||||
}*/
|
||||
}
|
||||
info.setLevel(info.getLevel()+1);
|
||||
user.getHeroManager().putTransformationList(info);
|
||||
int[][] dropItem = {nextConfig.getChangingForceExp()};
|
||||
|
|
@ -82,9 +82,9 @@ public class TransformationUpGradeHandler extends BaseHandler<HeroInfoProto.Tran
|
|||
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;
|
||||
}*/
|
||||
}
|
||||
if (info != null){
|
||||
info.setStar(info.getStar()+ 1);
|
||||
user.getHeroManager().putTransformationList(info);
|
||||
|
|
|
|||
|
|
@ -154,8 +154,8 @@ public class ChallengeLogic {
|
|||
* 检测开启状态
|
||||
*/
|
||||
public void check() {
|
||||
status[0] = 1;
|
||||
status[1] = 1;
|
||||
status[0] = 0;
|
||||
status[1] = 0;
|
||||
//无尽副本星期1、3、5、7开启
|
||||
//宝物副本星期2、4、6、7开启
|
||||
int[][] config = {{1, 3, 5, 7}, {2, 4, 6, 7}};
|
||||
|
|
|
|||
Loading…
Reference in New Issue