地图类型40
parent
f7ee8b388e
commit
e5cf962cee
|
@ -100,6 +100,7 @@ public class EventType {
|
|||
|
||||
public static final int thirtyEight = 38;
|
||||
public static final int thirtyNine = 39;
|
||||
public static final int fourty = 40;
|
||||
|
||||
public static final int updatePonintEvent = 1;
|
||||
public static final int fightEvent = 2;
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
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.logic.fight.CombatLogic;
|
||||
import com.ljsd.jieling.protocols.MapInfoProto;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class FourtyBehavior extends BaseBehavior {
|
||||
|
||||
@Override
|
||||
public int getBehaviorType() {
|
||||
return EventType.fourty;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean process(int optionId, User user, int[][] behaviorTypeValues, MapInfoProto.EventUpdateResponse.Builder eventUpdateResponse) throws Exception {
|
||||
BehaviorUtil.updateMission(user, eventUpdateResponse);
|
||||
CombatLogic.getInstance().bufferAddByEatFoodOrEventTrigger(user.getMapManager(), behaviorTypeValues[0][0]);
|
||||
for(int destoryPoint : behaviorTypeValues[1]){
|
||||
BehaviorUtil.destoryPoint(user, destoryPoint);
|
||||
}
|
||||
for (int i = 2; i < behaviorTypeValues.length; i++) {
|
||||
BehaviorUtil.addBehaviorInfo(user,behaviorTypeValues[i][3], user.getMapManager(), behaviorTypeValues[i][0], behaviorTypeValues[i][1], behaviorTypeValues[i][2]);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue