fix gm
parent
ae910bd0a9
commit
8dc2ac9f1c
|
@ -11,6 +11,7 @@ import com.ljsd.jieling.handler.BaseHandler;
|
||||||
import com.ljsd.jieling.handler.map.MapLogic;
|
import com.ljsd.jieling.handler.map.MapLogic;
|
||||||
import com.ljsd.jieling.logic.dao.*;
|
import com.ljsd.jieling.logic.dao.*;
|
||||||
import com.ljsd.jieling.logic.dao.root.User;
|
import com.ljsd.jieling.logic.dao.root.User;
|
||||||
|
import com.ljsd.jieling.logic.mission.GameEvent;
|
||||||
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
import com.ljsd.jieling.netty.cocdex.PacketNetData;
|
||||||
import com.ljsd.jieling.network.session.ISession;
|
import com.ljsd.jieling.network.session.ISession;
|
||||||
import com.ljsd.jieling.protocols.CommonProto;
|
import com.ljsd.jieling.protocols.CommonProto;
|
||||||
|
@ -114,12 +115,12 @@ public class GMRequestHandler extends BaseHandler{
|
||||||
sPlayerLevelConfigMap = SPlayerLevelConfig.getsPlayerLevelConfigMap();
|
sPlayerLevelConfigMap = SPlayerLevelConfig.getsPlayerLevelConfigMap();
|
||||||
LevelDifficultyManager levelDifficultyManager = cUser.getLevelDifficultyManager();
|
LevelDifficultyManager levelDifficultyManager = cUser.getLevelDifficultyManager();
|
||||||
openFightids(levelDifficultyManager,sPlayerLevelConfigMap.size());
|
openFightids(levelDifficultyManager,sPlayerLevelConfigMap.size());
|
||||||
adoptAllFight(levelDifficultyManager);
|
adoptAllFight(cUser,levelDifficultyManager);
|
||||||
break;
|
break;
|
||||||
case GlobalGm.ADOPT_FIGHT_BY_LEVE:
|
case GlobalGm.ADOPT_FIGHT_BY_LEVE:
|
||||||
levelDifficultyManager = cUser.getLevelDifficultyManager();
|
levelDifficultyManager = cUser.getLevelDifficultyManager();
|
||||||
openFightids(levelDifficultyManager,prarm1);
|
openFightids(levelDifficultyManager,prarm1);
|
||||||
adoptAllFight(levelDifficultyManager);
|
adoptAllFight(cUser,levelDifficultyManager);
|
||||||
break;
|
break;
|
||||||
case GlobalGm.ONE_KEY_ITEM_OR_HERO:{
|
case GlobalGm.ONE_KEY_ITEM_OR_HERO:{
|
||||||
//道具
|
//道具
|
||||||
|
@ -187,10 +188,11 @@ public class GMRequestHandler extends BaseHandler{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void adoptAllFight(LevelDifficultyManager levelDifficultyManager) {
|
private void adoptAllFight(User user,LevelDifficultyManager levelDifficultyManager) throws Exception {
|
||||||
Map<Integer, LevelDifficulty> levelDifficultyInfosMap = levelDifficultyManager.getLevelDifficultyInfosMap();
|
Map<Integer, LevelDifficulty> levelDifficultyInfosMap = levelDifficultyManager.getLevelDifficultyInfosMap();
|
||||||
for (Map.Entry<Integer,LevelDifficulty> entry :levelDifficultyInfosMap.entrySet()){
|
for (Map.Entry<Integer,LevelDifficulty> entry :levelDifficultyInfosMap.entrySet()){
|
||||||
entry.getValue().setState(Global.FIGHT_CLEARANCE);
|
entry.getValue().setState(Global.FIGHT_CLEARANCE);
|
||||||
|
user.getUserMissionManager().onGameEvent(user, GameEvent.STORY_FIGHT, entry.getValue().getFightId(),0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1830,6 +1830,7 @@ public class MapLogic {
|
||||||
crossInfo.getStars().add(STAR_3);
|
crossInfo.getStars().add(STAR_3);
|
||||||
crossInfoMap.put(i, crossInfo);
|
crossInfoMap.put(i, crossInfo);
|
||||||
mapManager.updateCrossInfoMap(i, crossInfo);
|
mapManager.updateCrossInfoMap(i, crossInfo);
|
||||||
|
user.getUserMissionManager().onGameEvent(user,GameEvent.STORY_FIGHT,mapManager.getCurMapId(),1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue