RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
DragonLongsword.java
1package com.osroyale.game.world.entity.combat.strategy.player.special.melee;
2
3import com.osroyale.game.Animation;
4import com.osroyale.game.Graphic;
5import com.osroyale.game.UpdatePriority;
6import com.osroyale.game.world.entity.combat.attack.FightType;
7import com.osroyale.game.world.entity.combat.hit.Hit;
8import com.osroyale.game.world.entity.combat.strategy.player.PlayerMeleeStrategy;
9import com.osroyale.game.world.entity.mob.Mob;
10import com.osroyale.game.world.entity.mob.player.Player;
11
38
39public class DragonLongsword extends PlayerMeleeStrategy {
40 private static final Animation ANIMATION = new Animation(1058, UpdatePriority.HIGH);
41 private static final Graphic GRAPHIC = new Graphic(248);
42 private static final DragonLongsword INSTANCE = new DragonLongsword();
43
44 private DragonLongsword() { }
45
46 @Override
47 public void start(Player attacker, Mob defender, Hit[] hits) {
48 super.start(attacker, defender, hits);
49 attacker.graphic(GRAPHIC);
50 }
51
52 @Override
53 public int getAttackDelay(Player attacker, Mob defender, FightType fightType) {
54 return 4;
55 }
56
57 @Override
58 public Animation getAttackAnimation(Player attacker, Mob defender) {
59 return ANIMATION;
60 }
61
62 @Override
63 public int modifyDamage(Player attacker, Mob defender, int damage) {
64 return (int) (damage * 1.15);
65 }
66
67 public static DragonLongsword get() {
68 return INSTANCE;
69 }
70
71}