kill reward

back_recharge
wangyuan 2019-07-03 14:22:54 +08:00
parent 49c738a616
commit becff88ad7
1 changed files with 4 additions and 3 deletions

View File

@ -672,7 +672,8 @@ public class CombatLogic {
//发送击杀boss奖励和发现者奖励 //发送击杀boss奖励和发现者奖励
if(fightResult == 1){ if(fightResult == 1){
i = i+1; i = i+1;
sendRewardOfBossKilled(adventureBoss.getFindUserId(),uid,bossGroupId,adventureBoss.getArenaId(),adventureBoss.getArenaLevel()); String killReward = sendRewardOfBossKilled(adventureBoss.getFindUserId(), uid, bossGroupId, adventureBoss.getArenaId(), adventureBoss.getArenaLevel());
builder.setKillRewards(killReward);
user.getUserMissionManager().onGameEvent(user, GameEvent.KILLINVASIONBOSS); user.getUserMissionManager().onGameEvent(user, GameEvent.KILLINVASIONBOSS);
RedisUtil.getInstence().removeMapEntrys(RedisKey.ADVENTRUEN_BOSS_INFO,"",bossId); RedisUtil.getInstence().removeMapEntrys(RedisKey.ADVENTRUEN_BOSS_INFO,"",bossId);
ISession findSession = OnlineUserManager.getSessionByUid(adventureBoss.getFindUserId()); ISession findSession = OnlineUserManager.getSessionByUid(adventureBoss.getFindUserId());
@ -706,7 +707,7 @@ public class CombatLogic {
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.ADVENTURE_BOSS_CHALLENGE_RESPONSE_VALUE,build,true); MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.ADVENTURE_BOSS_CHALLENGE_RESPONSE_VALUE,build,true);
} }
private void sendRewardOfBossKilled(int findUserId,int killUid,int killBossGroupId, int arenaId,int arenaLevel) throws Exception { private String sendRewardOfBossKilled(int findUserId,int killUid,int killBossGroupId, int arenaId,int arenaLevel) throws Exception {
SMonsterGroup sMonsterGroup = SMonsterGroup.getsMonsterGroupMap().get(killBossGroupId); SMonsterGroup sMonsterGroup = SMonsterGroup.getsMonsterGroupMap().get(killBossGroupId);
int[] killReward = sMonsterGroup.getRewardgroup(); int[] killReward = sMonsterGroup.getRewardgroup();
SAdventureConfig sAdventureConfig = SAdventureConfig.getConfig().get(arenaId); SAdventureConfig sAdventureConfig = SAdventureConfig.getConfig().get(arenaId);
@ -728,7 +729,7 @@ public class CombatLogic {
title = SErrorCodeEerverConfig.getI18NMessage("adventuren_boss_kill_reward_title"); title = SErrorCodeEerverConfig.getI18NMessage("adventuren_boss_kill_reward_title");
content = SErrorCodeEerverConfig.getI18NMessage("adventuren_boss_kill_reward__txt"); content = SErrorCodeEerverConfig.getI18NMessage("adventuren_boss_kill_reward__txt");
MailLogic.getInstance().sendMail(killUid,title,content,killRewardMail,nowTime, Global.MAIL_EFFECTIVE_TIME); MailLogic.getInstance().sendMail(killUid,title,content,killRewardMail,nowTime, Global.MAIL_EFFECTIVE_TIME);
return killRewardMail;
} }
public int updateBossAndGetHurtForFight(int[] checkResult,AdventureBoss adventureBoss){ public int updateBossAndGetHurtForFight(int[] checkResult,AdventureBoss adventureBoss){