公会副本修改
parent
a8a99c38e9
commit
0a9e9203cd
|
|
@ -87,9 +87,9 @@ public class GuildChallengeLogic {
|
|||
int size = STableManager.getConfig(SGuildCheckpointConfig.class).size();
|
||||
if(guildInfo.getBossHpRemain()==-1){
|
||||
if(size>currBossId){
|
||||
currBossId++;
|
||||
guildInfo.setCurrBossId(currBossId+1);
|
||||
guildInfo.setBossHpRemain(0);
|
||||
currBossId++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -269,14 +269,13 @@ public class GuildChallengeLogic {
|
|||
if(!error.isEmpty()){
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
if(guildInfo.getBossHpRemain()!=-1){
|
||||
if(guildInfo.getBossHpRemain()!=-1||kill==1){
|
||||
AbstractRank rank = RankContext.getRankEnum(RankEnum.GUILD_CHALLENGE_RANK.getType());
|
||||
long score = Double.valueOf(rank.getScoreById(user.getId(), guildId+":"+bossId)).longValue();
|
||||
rank.addRank(uid,guildId+":"+bossId,score==-1?damage:score+damage);
|
||||
}
|
||||
if(kill==1){
|
||||
//如果不是最后一个boss更特权
|
||||
if(guildInfo.getCurrBossId()-1!=configMap.size()){
|
||||
GuildLogic.sendFamilyBaseUpdateIndication(guildInfo);
|
||||
Map<Integer, Set<Integer>> members = guildInfo.getMembers();
|
||||
for(Set<Integer> items : members.values()){
|
||||
|
|
@ -306,7 +305,7 @@ public class GuildChallengeLogic {
|
|||
ProtocolsManager.getInstance().updateAyncWorker(worker);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//异步发奖
|
||||
Runnable runnable = () -> sendRankReward(guildId,bossId);
|
||||
runnable.run();
|
||||
|
|
|
|||
Loading…
Reference in New Issue