任务奖励改数组
parent
7176513785
commit
2bece3f31d
|
|
@ -16,7 +16,7 @@ public class SMissionEventsConfig implements BaseConfig {
|
||||||
|
|
||||||
private int missionNum;
|
private int missionNum;
|
||||||
|
|
||||||
private int reward;
|
private int[] reward;
|
||||||
|
|
||||||
private int[] openRules;
|
private int[] openRules;
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ public class SMissionEventsConfig implements BaseConfig {
|
||||||
return missionNum;
|
return missionNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getReward() {
|
public int[] getReward() {
|
||||||
return reward;
|
return reward;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1118,15 +1118,6 @@ public class MapLogic {
|
||||||
}
|
}
|
||||||
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
||||||
updateMapMission(mapManager,EventType.fightEvent,0,monsterGroupId);
|
updateMapMission(mapManager,EventType.fightEvent,0,monsterGroupId);
|
||||||
List<TeamPosHeroInfo> teamPosHeroInfos = user.getTeamPosManager().getTeamPosForHero().get(mapManager.getTeamId());
|
|
||||||
for (TeamPosHeroInfo heroInfo : teamPosHeroInfos) {
|
|
||||||
int position = heroInfo.getPosition();
|
|
||||||
Hero hero = user.getHeroManager().getHero(heroInfo.getHeroId());
|
|
||||||
if (hero == null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
hero.setCurHp(checkResult[position]);
|
|
||||||
}
|
|
||||||
// LOGGER.info("endFight() uid=>{} sMonsterGroup.getRewardgroup()=>{} misson=>{} eventDrop=>{}, missionDrop=>{}", uid, sMonsterGroup.getRewardgroup(), fightEndResponse.getMission(), fightEndResponse.getEnventDrop(), fightEndResponse.getMissionDrop());
|
// LOGGER.info("endFight() uid=>{} sMonsterGroup.getRewardgroup()=>{} misson=>{} eventDrop=>{}, missionDrop=>{}", uid, sMonsterGroup.getRewardgroup(), fightEndResponse.getMission(), fightEndResponse.getEnventDrop(), fightEndResponse.getMissionDrop());
|
||||||
MessageUtil.sendMessage(session, 1, messageType.getNumber(), fightEndResponse.build(), true);
|
MessageUtil.sendMessage(session, 1, messageType.getNumber(), fightEndResponse.build(), true);
|
||||||
|
|
||||||
|
|
@ -1318,8 +1309,7 @@ public class MapLogic {
|
||||||
if (mission.getMissionInfo() != null) {
|
if (mission.getMissionInfo() != null) {
|
||||||
checkMissionReturn.newEventId = mission.getMissionInfo();
|
checkMissionReturn.newEventId = mission.getMissionInfo();
|
||||||
}
|
}
|
||||||
int[] reward = {sMissionEventsConfig.getReward()};
|
CommonProto.Drop.Builder drop = ItemUtil.drop(user, sMissionEventsConfig.getReward(), 1, 1);
|
||||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, reward, 1, 1);
|
|
||||||
checkMissionReturn.drop = drop;
|
checkMissionReturn.drop = drop;
|
||||||
int useTime = getUseTime(user);
|
int useTime = getUseTime(user);
|
||||||
mission.setTime(useTime);
|
mission.setTime(useTime);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue