天宫秘宝积分购买添加 公会副本击杀奖励修改

lvxinran 2020-10-01 00:40:30 +08:00
parent e0e89d377e
commit 5f9b70ea80
4 changed files with 13 additions and 2 deletions

View File

@ -224,8 +224,6 @@ public class GuildChallengeLogic {
}
damage = guildMyInfo.getGuildChallengeDamage();
}
drop = ItemUtil.drop(user, new int[]{config.getReward()}, 1, 0, 1);
}
}
if(!error.isEmpty()){
@ -266,6 +264,8 @@ public class GuildChallengeLogic {
runnable.run();
drop = ItemUtil.drop(user, new int[]{config.getReward(),config.getKillReward()}, 1, 0, 1);
}else{
drop = ItemUtil.drop(user, new int[]{config.getReward()}, 1, 0, 1);
}
double blood = guildInfo.getBossHpRemain();
Family.GuildChallengeIndication.Builder indication = Family.GuildChallengeIndication.newBuilder()

View File

@ -25,6 +25,7 @@ import com.ljsd.jieling.logic.dao.RechargeInfo;
import com.ljsd.jieling.logic.dao.UserManager;
import com.ljsd.jieling.logic.dao.VipInfo;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.logic.expedition.ExpeditionLogic;
import com.ljsd.jieling.logic.fight.CombatLogic;
import com.ljsd.jieling.logic.mail.MailLogic;
import com.ljsd.jieling.logic.mission.GameEvent;
@ -47,6 +48,8 @@ import util.TimeUtils;
import java.math.BigDecimal;
import java.util.*;
import static com.ljsd.jieling.logic.store.GiftGoodsType.SKY_TREASURE;
/**
* 西
*/
@ -393,6 +396,11 @@ public class BuyGoodsLogic {
}
}
if(type==GiftGoodsType.SKY_TREASURE){
user.getExpeditionManager().getWorldTreasureReward().setScore(user.getExpeditionManager().getWorldTreasureReward().getScore()+SSpecialConfig.getIntegerValue(SSpecialConfig.SKY_TREASURE_SCORE_INGIFT));
Map<Integer, Integer> rewardStatusMap = user.getExpeditionManager().getWorldTreasureReward().getRewardStatusMap();
ExpeditionLogic.sendTreasureRewardUpdate(OnlineUserManager.getSessionByUid(user.getId()),user.getExpeditionManager().getWorldTreasureReward().getScore(),rewardStatusMap,user.getExpeditionManager().getWorldTreasureReward().getCreateTime());
}
if(sRechargeCommodityConfig.getTime() ==5){
rechargeInfo.updateRefreshMapByKey(sRechargeCommodityConfig.getId(),TimeUtils.now()+sRechargeCommodityConfig.getDailyUpdate()*TimeUtils.DAY);
}

View File

@ -11,4 +11,6 @@ public interface GiftGoodsType {
int FOUND_ONE = 8; //豪华基金
int FOUND_TWO = 9; //豪华基金
int SUN_LONG = 11; //豪华基金
int SKY_TREASURE = 12; //天宫秘宝
}

View File

@ -75,6 +75,7 @@ public class SSpecialConfig implements BaseConfig {
public static final String XUANYUAN_OPEN_TIME = "xuanyuan_open_time";//轩辕开始时间(星期)
public static final String EXCHANGE_FORCE_TYPE = "exchange_focus_type";//货币转换类型
public static final String SKY_TREASURE_SCORE_INGIFT = "sky_treasure_score_ingift";//天宫密保购买默认获得积分
@Override
public void init() throws Exception {