【山河设计图每日玉衡龙魂丹领取调整】
parent
f22b7b0c94
commit
2791d19ee0
|
@ -7,7 +7,7 @@ public interface VipPrivilegeType {
|
||||||
int ADVENTURE_EXP_REWARD = 27;//探险符文奖励收益
|
int ADVENTURE_EXP_REWARD = 27;//探险符文奖励收益
|
||||||
|
|
||||||
int FAST_MAP_LIMIT = 4;//极速探索每日免费次数
|
int FAST_MAP_LIMIT = 4;//极速探索每日免费次数
|
||||||
int BUY_STAIM_LIMIT = 5;//购买体力次数上限
|
int BUY_YUHENGLONGHUNDAN_LIMIT = 5;//每日玉衡龙魂丹免费次数%s
|
||||||
|
|
||||||
int SECRET_RANDOM_LIMIT = 6;//秘盒抽取次数上限
|
int SECRET_RANDOM_LIMIT = 6;//秘盒抽取次数上限
|
||||||
int SIMPLE_MAP_LIMIT = 7;//剧情副本每日恢复次数上限
|
int SIMPLE_MAP_LIMIT = 7;//剧情副本每日恢复次数上限
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.ljsd.jieling.logic.hardStage;
|
package com.ljsd.jieling.logic.hardStage;
|
||||||
|
|
||||||
|
import com.ljsd.jieling.core.VipPrivilegeType;
|
||||||
import com.ljsd.jieling.exception.ErrorCode;
|
import com.ljsd.jieling.exception.ErrorCode;
|
||||||
import com.ljsd.jieling.exception.ErrorCodeException;
|
import com.ljsd.jieling.exception.ErrorCodeException;
|
||||||
import com.ljsd.jieling.globals.BIReason;
|
import com.ljsd.jieling.globals.BIReason;
|
||||||
|
@ -14,6 +15,8 @@ import com.ljsd.jieling.logic.dao.root.User;
|
||||||
import com.ljsd.jieling.logic.fight.specialparm.SpecialForTeamBuildEnum;
|
import com.ljsd.jieling.logic.fight.specialparm.SpecialForTeamBuildEnum;
|
||||||
import com.ljsd.jieling.logic.hero.HeroLogic;
|
import com.ljsd.jieling.logic.hero.HeroLogic;
|
||||||
import com.ljsd.jieling.logic.item.ItemLogic;
|
import com.ljsd.jieling.logic.item.ItemLogic;
|
||||||
|
import com.ljsd.jieling.logic.player.PlayerLogic;
|
||||||
|
import com.ljsd.jieling.logic.store.StoreLogic;
|
||||||
import com.ljsd.jieling.network.session.ISession;
|
import com.ljsd.jieling.network.session.ISession;
|
||||||
import com.ljsd.jieling.util.ItemUtil;
|
import com.ljsd.jieling.util.ItemUtil;
|
||||||
import com.ljsd.jieling.util.MessageUtil;
|
import com.ljsd.jieling.util.MessageUtil;
|
||||||
|
@ -498,6 +501,15 @@ public class HardStageLogic {
|
||||||
if (hardStageManager.isTakeReward()) {
|
if (hardStageManager.isTakeReward()) {
|
||||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean update = PlayerLogic.getInstance().checkAndUpdate(user, VipPrivilegeType.BUY_YUHENGLONGHUNDAN_LIMIT, 1);
|
||||||
|
if (!update){
|
||||||
|
String result = StoreLogic.checkBuyGoodsAndUpdate(user, 7, 10006, 1);
|
||||||
|
if (!"".equals(result)){
|
||||||
|
throw new ErrorCodeException(ErrorCode.newDefineCode(result));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int dailyNumForStarsOfHardStage = SSpecialConfig.getIntegerValue(SSpecialConfig.DailyNumForStarsOfHardStage);
|
int dailyNumForStarsOfHardStage = SSpecialConfig.getIntegerValue(SSpecialConfig.DailyNumForStarsOfHardStage);
|
||||||
int basicNumOfHardStage = SSpecialConfig.getIntegerValue(SSpecialConfig.BasicNumOfHardStage);
|
int basicNumOfHardStage = SSpecialConfig.getIntegerValue(SSpecialConfig.BasicNumOfHardStage);
|
||||||
int hardStageStarsSum = getHardStageStarsSum(user);
|
int hardStageStarsSum = getHardStageStarsSum(user);
|
||||||
|
@ -506,7 +518,6 @@ public class HardStageLogic {
|
||||||
drop[0] = new int[2];
|
drop[0] = new int[2];
|
||||||
drop[0][0] = 1226;
|
drop[0][0] = 1226;
|
||||||
drop[0][1] = count;
|
drop[0][1] = count;
|
||||||
hardStageManager.setTakeReward(true);
|
|
||||||
CommonProto.Drop.Builder dropProto = ItemUtil.drop(user, drop, BIReason.TAKE_YUHENLONGDAN);
|
CommonProto.Drop.Builder dropProto = ItemUtil.drop(user, drop, BIReason.TAKE_YUHENLONGDAN);
|
||||||
PlayerInfoProto.HardStageDailyRewardResponse hardStageDailyRewardResponse = PlayerInfoProto.HardStageDailyRewardResponse.newBuilder()
|
PlayerInfoProto.HardStageDailyRewardResponse hardStageDailyRewardResponse = PlayerInfoProto.HardStageDailyRewardResponse.newBuilder()
|
||||||
.setDrop(dropProto)
|
.setDrop(dropProto)
|
||||||
|
|
Loading…
Reference in New Issue