acitvity
parent
989d0a2d85
commit
a2ffa2fbfe
|
@ -138,7 +138,7 @@ public class GetPlayerInfoHandler extends BaseHandler{
|
||||||
try {
|
try {
|
||||||
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_PLAYERINFO_RESPONSE_VALUE, getPlayerInfoResponse, true);
|
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.GET_PLAYERINFO_RESPONSE_VALUE, getPlayerInfoResponse, true);
|
||||||
ActivityLogic.getInstance().flushForLogin(user);
|
ActivityLogic.getInstance().flushForLogin(user);
|
||||||
DoFix.getInstance().loginFix(user);
|
// DoFix.getInstance().loginFix(user);
|
||||||
if(playerInfoManager.getIsdayFirst()==0){
|
if(playerInfoManager.getIsdayFirst()==0){
|
||||||
playerInfoManager.setIsdayFirst(1);
|
playerInfoManager.setIsdayFirst(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,7 +188,7 @@ public class MapLogic {
|
||||||
}
|
}
|
||||||
user.setMapManager(mapManager);
|
user.setMapManager(mapManager);
|
||||||
user.getUserMissionManager().onGameEvent(user,GameEvent.PlAY_STORY,SChallengeConfig.sChallengeConfigs.get(mapId).getType(),1);
|
user.getUserMissionManager().onGameEvent(user,GameEvent.PlAY_STORY,SChallengeConfig.sChallengeConfigs.get(mapId).getType(),1);
|
||||||
Poster.getPoster().dispatchEvent(new StoryEvent(user.getId()));
|
Poster.getPoster().dispatchEvent(new StoryEvent(user.getId(),1));
|
||||||
} else if (mapManager.getCurMapId() != mapId) {
|
} else if (mapManager.getCurMapId() != mapId) {
|
||||||
|
|
||||||
MessageUtil.sendErrorResponse(iSession, 0, messageType.getNumber(), "地图错误,应进入" + mapManager.getCurMapId());
|
MessageUtil.sendErrorResponse(iSession, 0, messageType.getNumber(), "地图错误,应进入" + mapManager.getCurMapId());
|
||||||
|
@ -1813,6 +1813,7 @@ public class MapLogic {
|
||||||
CommonProto.Drop.Builder dropBuilder = ItemUtil.drop(user, sChallengeMapConfig.getSweepingAward(), 1, 0, BIReason.MAP_SWEEP_REWARD);
|
CommonProto.Drop.Builder dropBuilder = ItemUtil.drop(user, sChallengeMapConfig.getSweepingAward(), 1, 0, BIReason.MAP_SWEEP_REWARD);
|
||||||
mapSweepResponse.addDrop(dropBuilder);
|
mapSweepResponse.addDrop(dropBuilder);
|
||||||
}
|
}
|
||||||
|
Poster.getPoster().dispatchEvent(new StoryEvent(user.getId(),count));
|
||||||
user.getUserMissionManager().onGameEvent(user, GameEvent.STORY_FIGHT, mapId,1,count);
|
user.getUserMissionManager().onGameEvent(user, GameEvent.STORY_FIGHT, mapId,1,count);
|
||||||
user.getUserMissionManager().onGameEvent(user, GameEvent.PlAY_STORY, type,count);
|
user.getUserMissionManager().onGameEvent(user, GameEvent.PlAY_STORY, type,count);
|
||||||
MessageUtil.sendMessage(session, 1, messageType.getNumber(), mapSweepResponse.build(), true);
|
MessageUtil.sendMessage(session, 1, messageType.getNumber(), mapSweepResponse.build(), true);
|
||||||
|
|
|
@ -18,7 +18,7 @@ class CopyExpectRankActivity extends ExpectRankActivity {
|
||||||
public void onEvent(IEvent event) throws Exception {
|
public void onEvent(IEvent event) throws Exception {
|
||||||
if (!(event instanceof StoryEvent))
|
if (!(event instanceof StoryEvent))
|
||||||
return;
|
return;
|
||||||
update(UserManager.getUser(((StoryEvent) event).getUid()), 1);
|
update(UserManager.getUser(((StoryEvent) event).getUid()), ((StoryEvent) event).getCount());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,12 +6,18 @@ package com.ljsd.jieling.logic.activity.event;
|
||||||
public class StoryEvent implements IEvent {
|
public class StoryEvent implements IEvent {
|
||||||
|
|
||||||
private int uid;
|
private int uid;
|
||||||
|
private int count;
|
||||||
|
|
||||||
public StoryEvent(int uid) {
|
public StoryEvent(int uid, int count) {
|
||||||
this.uid = uid;
|
this.uid = uid;
|
||||||
|
this.count = count;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getUid() {
|
public int getUid() {
|
||||||
return uid;
|
return uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getCount() {
|
||||||
|
return count;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue