RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SpritualRanger.java
1package com.osroyale.game.world.entity.combat.attack.listener.npc.godwar;
2
3import com.osroyale.game.Animation;
4import com.osroyale.game.UpdatePriority;
5import com.osroyale.game.world.entity.combat.attack.listener.NpcCombatListenerSignature;
6import com.osroyale.game.world.entity.combat.attack.listener.SimplifiedListener;
7import com.osroyale.game.world.entity.combat.attack.listener.npc.Dessourt;
8import com.osroyale.game.world.entity.combat.hit.Hit;
9import com.osroyale.game.world.entity.combat.strategy.npc.NpcMeleeStrategy;
10import com.osroyale.game.world.entity.combat.strategy.npc.NpcRangedStrategy;
11import com.osroyale.game.world.entity.mob.Mob;
12import com.osroyale.game.world.entity.mob.npc.Npc;
13
14import static com.osroyale.game.world.entity.combat.CombatUtil.createStrategyArray;
15import static com.osroyale.game.world.entity.combat.projectile.CombatProjectile.getDefinition;
16
20@NpcCombatListenerSignature(npcs = {3160, 2211})
45
46public class SpritualRanger extends SimplifiedListener<Npc> {
47
48 private static RangedAttack RANGED = new RangedAttack();
49
50 @Override
51 public void start(Npc attacker, Mob defender, Hit[] hits) {
52 attacker.setStrategy(RANGED);
53 }
54
55 private static class RangedAttack extends NpcRangedStrategy {
56 private RangedAttack() {
57 super(getDefinition("Spirtual Ranger"));
58 }
59
60 @Override
61 public Animation getAttackAnimation(Npc attacker, Mob defender) {
62 return new Animation(426, UpdatePriority.VERY_HIGH);
63 }
64 }
65}