玉虚bug修改,天天零点一折任务刷新bug修改
parent
4d9808c9f4
commit
5e068e2b29
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"version":"6",
|
||||
"tables":"EquipConfig|RechargeCommodityConfig|GlobalSystemConfig"
|
||||
"version":"5",
|
||||
"tables":""
|
||||
}
|
||||
|
|
@ -1,7 +1,5 @@
|
|||
{
|
||||
"version":"8",
|
||||
"version":"5",
|
||||
"classes": [
|
||||
{"name":"MissionEventDistributor.class","fullName":"com.ljsd.jieling.logic.mission.event.MissionEventDistributor"},
|
||||
{"name":"EveryDayDiscountType.class","fullName":"com.ljsd.jieling.logic.mission.main.EveryDayDiscountType"}
|
||||
]
|
||||
}
|
||||
|
|
@ -365,6 +365,9 @@ public class CrossYuxulundaoChallengeHandler extends BaseHandler<ArenaInfoProto.
|
|||
arenaRecord.setHeadFrame(csPlayer.getHeadFrame());//头像框
|
||||
arenaRecord.setPracticeLevel(csPlayer.getPracticeLevel());
|
||||
arenaRecord.setServerName(defServerName);
|
||||
|
||||
List<Long> yxldMyForce = arenaRecord.getYxldMyForce();
|
||||
List<Long> yxldDefForce = arenaRecord.getYxldDefForce();
|
||||
for (int i = 0; i < 3; i++) {
|
||||
//编队为空 判输赢
|
||||
if (!updateResult(myUser,i, myteamId, defTeamId, result, csPlayer, arenaRecord)) {
|
||||
|
|
@ -376,11 +379,11 @@ public class CrossYuxulundaoChallengeHandler extends BaseHandler<ArenaInfoProto.
|
|||
|
||||
//根据战力判断先后手
|
||||
long myforce = 0,defforce = 0;
|
||||
if(arenaRecord.getYxldMyForce().get(i)!=null){
|
||||
myforce =arenaRecord.getYxldMyForce().get(i);
|
||||
if (yxldMyForce != null && yxldMyForce.size() > i && yxldMyForce.get(i) != null){
|
||||
myforce = yxldMyForce.get(i);
|
||||
}
|
||||
if(arenaRecord.getYxldDefForce().get(i)!=null){
|
||||
defforce = arenaRecord.getYxldDefForce().get(i);
|
||||
if(yxldDefForce != null && yxldDefForce.size() > i && yxldDefForce.get(i) != null){
|
||||
defforce = yxldDefForce.get(i);
|
||||
}
|
||||
FightResult fightResult = GetWorldArenaChallengeRequestHandler.getFightForPVP(myUser.getId(),
|
||||
fightTeamInfo, defteamInfo, FightUtil.getFightSeed(), myforce<defforce,FightType.CrossYuxulundaoFight);
|
||||
|
|
@ -414,6 +417,10 @@ public class CrossYuxulundaoChallengeHandler extends BaseHandler<ArenaInfoProto.
|
|||
public static boolean updateResult(User user,int i, int[] myteamId, int[] defTeamId, int[] result, CSPlayer csPlayer, ArenaRecord arenaRecord) {
|
||||
//没有队伍时候 直接断定对方赢
|
||||
Map<Integer, List<TeamPosHeroInfo>> teamPosForHero = user.getTeamPosManager().getTeamPosForHero();
|
||||
CSPlayer player = CrossServiceLogic.getPlayerByRedis(csPlayer.getUserId());
|
||||
if (player == null) {
|
||||
return true;
|
||||
}
|
||||
if(!teamPosForHero.containsKey(myteamId[i]) || teamPosForHero.get(myteamId[i]).isEmpty()){
|
||||
result[i] = 0;
|
||||
CommonProto.FightTeamInfo defteamInfo = FightUtil.makeCrossPersonData(csPlayer, defTeamId[i], arenaRecord);
|
||||
|
|
@ -429,10 +436,6 @@ public class CrossYuxulundaoChallengeHandler extends BaseHandler<ArenaInfoProto.
|
|||
if (i == 2) {
|
||||
arenaRecord.setYxldFightData3(snapRecord);
|
||||
}
|
||||
CSPlayer player = CrossServiceLogic.getPlayerByRedis(csPlayer.getUserId());
|
||||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
arenaRecord.getYxldDefForce().add(player.getYuxuForce());
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import com.ljsd.jieling.logic.fight.CombatLogic;
|
|||
import com.ljsd.jieling.logic.mail.MailLogic;
|
||||
import com.ljsd.jieling.logic.mission.GameEvent;
|
||||
import com.ljsd.jieling.logic.mission.MissionType;
|
||||
import com.ljsd.jieling.logic.mission.event.MissionEventDistributor;
|
||||
import com.ljsd.jieling.logic.player.PlayerLogic;
|
||||
import com.ljsd.jieling.logic.store.newRechargeInfo.NewRechargeInfo;
|
||||
import com.ljsd.jieling.logic.store.newRechargeInfo.PushRechargeType;
|
||||
|
|
@ -187,6 +188,7 @@ public class BuyGoodsNewLogic {
|
|||
* @param list 额外掉落
|
||||
*/
|
||||
private static void rechargeHandler(User user, String orderId, int giftId, int amount, List<int[][]> list) throws Exception {
|
||||
MissionEventDistributor.requestStart();
|
||||
// 其他礼包活动
|
||||
Poster.getPoster().dispatchEvent(new SuperBoxEvent(user.getId(),giftId,1,1));
|
||||
// 天天零点1折购买消耗
|
||||
|
|
@ -236,6 +238,10 @@ public class BuyGoodsNewLogic {
|
|||
// 天天任务
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.EVERY_DAY_UPDATE, MissionType.RECHARGE_ACCUMULATIVE_NUM, amount);
|
||||
}
|
||||
ISession session = OnlineUserManager.getSessionByUid(user.getId());
|
||||
if (session != null){
|
||||
MissionEventDistributor.requestEnd(session,true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue