35 推任务,删除指定地图点,生成新的事件点。

back_recharge
jiahuiwen 2019-05-15 15:55:46 +08:00
parent 9593836b3c
commit 8548c4f9c2
4 changed files with 26 additions and 2 deletions

View File

@ -92,6 +92,7 @@ public class EventType {
public static final int thirtyTwo = 32;
public static final int thirtyThree = 33;
public static final int thirtyFour = 34;
public static final int thirtyFive = 35;
public static final int updatePonintEvent = 1;
public static final int fightEvent = 2;

View File

@ -24,7 +24,6 @@ import org.luaj.vm2.LuaValue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ConfigurableApplicationContext;
import redis.clients.jedis.Jedis;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;

View File

@ -0,0 +1,24 @@
package com.ljsd.jieling.handler.map.behavior;
import com.ljsd.jieling.handler.map.EventType;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.protocols.MapInfoProto;
import org.springframework.stereotype.Component;
@Component
public class ThirtyFiveBehavior extends BaseBehavior {
@Override
public int getBehaviorType() {
return EventType.thirtyFive;
}
@Override
public boolean process(int optionId, User user, int[][] behaviorTypeValues, MapInfoProto.EventUpdateResponse.Builder eventUpdateResponse) throws Exception {
BehaviorUtil.updateMission(user, eventUpdateResponse);
BehaviorUtil.destoryPoint(user, 0, behaviorTypeValues[0][0]);
for (int i = 1; i < behaviorTypeValues.length; i++) {
BehaviorUtil.addBehaviorInfo(behaviorTypeValues[i][3], user.getMapManager(), behaviorTypeValues[i][0], behaviorTypeValues[i][1], behaviorTypeValues[i][2]);
}
return true;
}
}

View File

@ -1262,7 +1262,7 @@ public class HeroLogic {
sArenaRobotConfig.setBreakId(heroBreakId);
sArenaRobotConfig.setStarOfHeroMap(starHeroMap);
}
sArenaRobotConfig.setTotalForce(HeroLogic.getInstance().calRobotTotalForce(sArenaRobotConfig));
sArenaRobotConfig.setTotalForce(calRobotTotalForce(sArenaRobotConfig));
}
}