小兵关卡任务
parent
efd58dc0c0
commit
99f93fe2d6
|
@ -22,7 +22,6 @@ public class CumulationData {
|
|||
* 获得某品质妖灵师 次数 获得需求品质妖灵师 3.4.5
|
||||
* 获得某元素妖灵师 次数 获得需求元素妖灵师 碧水、狂风、大地、火焰、神圣、黑暗
|
||||
* 获得某职业妖灵师 次数 获得需求元素妖灵师 武卫、玄策、秘法、天罚、生花
|
||||
*
|
||||
* key:heroTid, value :数量
|
||||
*/
|
||||
// private Map<Integer,Integer> sHeroCountMap=new HashMap<>(); // 妖灵师数量统计
|
||||
|
@ -36,10 +35,7 @@ public class CumulationData {
|
|||
*/
|
||||
private Map<Integer,Integer> heroLevleCountMap = new HashMap<>();
|
||||
|
||||
/**
|
||||
* key:副本类型 value:战斗次数
|
||||
*/
|
||||
// private Map<Integer,Integer> storyFightCountMap=new HashMap<>(); // 不同副本挑战次数
|
||||
// private Map<Integer,Integer> storyFightCountMap=new HashMap<>(); // 不同副本挑战次数 key:副本类型 value:战斗次数
|
||||
|
||||
/**
|
||||
* 获得某品质装备数量
|
||||
|
|
|
@ -185,6 +185,7 @@ public enum MissionType {
|
|||
QIJIE_INSTANCE_ZONES_NUM(163),//进行num次七界试炼
|
||||
XIAOYAOYOU_CONSUME_NUM(164),//逍遥游消耗云游值num点
|
||||
FABAO_DRAW_NUM(165),//法宝抽卡次数
|
||||
SOLDIER_LAYER(166),//小兵层数
|
||||
;
|
||||
|
||||
private int missionType;
|
||||
|
|
|
@ -16,6 +16,7 @@ public class DataManagerDistributor {
|
|||
public static void init(){
|
||||
judges.put(MissionType.RECRUITMENT_RANDOM_HEROES,new RandomHeroDataManager());
|
||||
judges.put(MissionType.FABAO_DRAW_NUM,new FabaoDrawTaskManager());
|
||||
judges.put(MissionType.SOLDIER_LAYER,new SoldierLayerManager());
|
||||
judges.put(MissionType.ELEMENT_RANDOM_TIMES,new RandomHeroDataManager());
|
||||
judges.put(MissionType.COLLECT_QUALITY_HERO,new GetHeroManager());
|
||||
judges.put(MissionType.COLLECT_DIFFERENT_HEROS,new GetHeroManager());
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
package com.ljsd.jieling.logic.mission.data;
|
||||
|
||||
import com.ljsd.jieling.logic.dao.CumulationData;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.mission.MissionType;
|
||||
|
||||
public class SoldierLayerManager extends AbstractDataManager {
|
||||
|
||||
@Override
|
||||
public boolean isFinish(User user, CumulationData data, int[][] cfgValue, Object... parm) {
|
||||
return user.getMainLevelManager().getSoldierLayerId() >= cfgValue[1][0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getProcess(User user, CumulationData data, int[] missionSubType) {
|
||||
return user.getMainLevelManager().getSoldierLayerId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CumulationData.Result updateData(CumulationData data, MissionType missionType, Object... parm) {
|
||||
return new CumulationData.Result(missionType);
|
||||
}
|
||||
}
|
|
@ -6,13 +6,14 @@ import com.ljsd.jieling.exception.ErrorCodeException;
|
|||
import com.ljsd.jieling.exception.ErrorTableException;
|
||||
import com.ljsd.jieling.globals.BIReason;
|
||||
import com.ljsd.jieling.handler.map.MapLogic;
|
||||
import com.ljsd.jieling.logic.activity.event.FightMainEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.Poster;
|
||||
import com.ljsd.jieling.logic.activity.event.SaveHeroForceEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.SoldierMainEvent;
|
||||
import com.ljsd.jieling.logic.dao.*;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.hero.HeroLogic;
|
||||
import com.ljsd.jieling.logic.mission.GameEvent;
|
||||
import com.ljsd.jieling.logic.mission.MissionType;
|
||||
import com.ljsd.jieling.logic.rank.RankContext;
|
||||
import com.ljsd.jieling.logic.rank.RankEnum;
|
||||
import com.ljsd.jieling.logic.rank.rankImpl.AbstractRank;
|
||||
|
@ -323,6 +324,7 @@ public class SoldierLogic {
|
|||
AbstractRank rank = RankContext.getRankEnum(RankEnum.MAIN_LEVEL_RANK.getType());
|
||||
rank.addRank(user.getId(), "", stageConfig.getId(), user.getPlayerInfoManager().getMaxForce());
|
||||
Poster.getPoster().dispatchEvent(new SoldierMainEvent(user.getId()));
|
||||
user.getUserMissionManager().onGameEvent(user, GameEvent.ONE_MISSION_TYPE_CONSUME, MissionType.SOLDIER_LAYER, 1);
|
||||
}
|
||||
|
||||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.SoldierFightCheckResponse_VALUE, builder.build(), true);
|
||||
|
|
Loading…
Reference in New Issue