车迟斗法积分为0处理
parent
040d8bff45
commit
17a8cc3811
|
@ -78,7 +78,7 @@ public class FastChallengeHandler extends BaseHandler<FightInfoProto.FastFightCh
|
|||
}
|
||||
|
||||
long hurt;
|
||||
long gainScore = 0;
|
||||
double gainScore = 0;
|
||||
int challengeId = proto.getChalleageId();
|
||||
int battleRound = sWorldBossSetting.getBattleRound();
|
||||
CommonProto.FightData fightData;
|
||||
|
@ -93,7 +93,7 @@ public class FastChallengeHandler extends BaseHandler<FightInfoProto.FastFightCh
|
|||
}
|
||||
hurt = fightResult.getDuration();
|
||||
fightData = fightResult.getFightData();
|
||||
gainScore = hurt*(sWorldBossSetting.getScorePercent()/10000);
|
||||
gainScore = hurt*(sWorldBossSetting.getScorePercent()/10000F);
|
||||
double myscore = gainScore;
|
||||
if(isNew){
|
||||
myscore+=TimeUtils.getDoubleTime();
|
||||
|
@ -122,7 +122,7 @@ public class FastChallengeHandler extends BaseHandler<FightInfoProto.FastFightCh
|
|||
if(fight == 1){
|
||||
long challengeScore = RedisUtil.getInstence().getZSetScore(RankEnum.CAR_DEALY_RANK.getRedisKey(), "", String.valueOf(challengeId)).longValue();
|
||||
if(challengeScore !=-1){
|
||||
gainScore = challengeScore*(sWorldBossSetting.getGrabPercent()/10000);
|
||||
gainScore = challengeScore*(sWorldBossSetting.getGrabPercent()/10000F);
|
||||
if(gainScore!=0){
|
||||
RankEnum.toRank(RankEnum.CAR_DEALY_RANK.getType()).incrementRankScore(uid,"",gainScore);
|
||||
RankEnum.toRank(RankEnum.CAR_DEALY_RANK.getType()).incrementRankScore(challengeId,"",-gainScore);
|
||||
|
@ -168,7 +168,7 @@ public class FastChallengeHandler extends BaseHandler<FightInfoProto.FastFightCh
|
|||
guildInfo.addCarFightSb(uid);
|
||||
user.getGuildMyInfo().setCarPlayTime(TimeUtils.nowInt());
|
||||
user.getGuildMyInfo().setCarPlayProgress(GuildFightLogic.carDelayProgressIndication.getProgress());
|
||||
FightInfoProto.FastFightChallengeResponse build = FightInfoProto.FastFightChallengeResponse.newBuilder().setHurt(hurt).setScore(gainScore).setFightData(fightData).build();
|
||||
FightInfoProto.FastFightChallengeResponse build = FightInfoProto.FastFightChallengeResponse.newBuilder().setHurt(hurt).setScore((long) gainScore).setFightData(fightData).build();
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.FAST_FIGHT_CHALLENGE_RESPONSE_VALUE,build,true);
|
||||
ReportUtil.onReportEvent(user, ReportEventEnum.COMPLETE_CHECHI.getType(),sWorldBossSetting.getid(),type,1,gainScore);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue