2package com.osroyale.game.action.impl;
4import com.osroyale.game.action.Action;
5import com.osroyale.game.action.policy.WalkablePolicy;
6import com.osroyale.game.world.entity.mob.npc.Npc;
7import com.osroyale.content.pet.PetData;
8import com.osroyale.game.world.position.Position;
10import java.util.Arrays;
23 private int[] identification;
28 private final int[] FIRST_OPTION = {};
33 private final int[] SECOND_OPTION = {3080, 3010};
38 private final int[] THIRD_OPTION = {};
40 private final int[] FOURTH_OPTION = {};
51 if (option == 0) identification = FIRST_OPTION;
52 else if (option == 1) identification = SECOND_OPTION;
53 else if (option == 2) identification = THIRD_OPTION;
54 else if (option == 3) identification = FOURTH_OPTION;
56 if (Arrays.stream(
PetData.values()).anyMatch(p -> npc.id == p.getNpc())) {
61 if (identification !=
null && Arrays.stream(identification).anyMatch($it -> npc.id == $it)) {
Action(T mob, int delay, boolean instant)
NpcFaceAction(Npc npc, Position face, int option)
WalkablePolicy getWalkablePolicy()
synchronized final void cancel()