a100affda2
Unified kotlin and java into just src/main Unified the rs09 and core packages Took all content out of the core package, and placed it into the new content package Reorganised all source code relating to content to be easier to find and explore
54 lines
1.1 KiB
Java
54 lines
1.1 KiB
Java
package content.global.skill.slayer;
|
|
|
|
import core.game.node.entity.combat.BattleState;
|
|
import core.game.node.entity.combat.CombatSwingHandler;
|
|
import core.game.node.entity.npc.AbstractNPC;
|
|
import core.game.world.map.Location;
|
|
import core.plugin.Initializable;
|
|
|
|
/**
|
|
* Handles a cockatrice npc.
|
|
* @author Vexia
|
|
*/
|
|
@Initializable
|
|
public final class CockatriceNPC extends AbstractNPC {
|
|
|
|
/**
|
|
* Constructs a new {@code CockatriceNPC} {@code Object}.
|
|
*/
|
|
public CockatriceNPC() {
|
|
super(0, null);
|
|
}
|
|
|
|
/**
|
|
* Constructs a new {@code CockatriceNPC} {@code Object}.
|
|
* @param id the id.
|
|
* @param location the location.
|
|
*/
|
|
public CockatriceNPC(int id, Location location) {
|
|
super(id, location);
|
|
}
|
|
|
|
@Override
|
|
public AbstractNPC construct(int id, Location location, Object... objects) {
|
|
return new CockatriceNPC(id, location);
|
|
}
|
|
|
|
@Override
|
|
public CombatSwingHandler getSwingHandler(boolean swing) {
|
|
return MirrorShieldHandler.SINGLETON;
|
|
}
|
|
|
|
@Override
|
|
public void checkImpact(BattleState state) {
|
|
super.checkImpact(state);
|
|
MirrorShieldHandler.SINGLETON.checkImpact(state);
|
|
}
|
|
|
|
@Override
|
|
public int[] getIds() {
|
|
return new int[] { 1620, 1621 };
|
|
}
|
|
|
|
}
|