RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
AbyssalBludgen.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.hit.Hit;
7import com.osroyale.game.world.entity.combat.strategy.player.PlayerMeleeStrategy;
8import com.osroyale.game.world.entity.mob.Mob;
9import com.osroyale.game.world.entity.mob.player.Player;
10import com.osroyale.game.world.entity.skill.Skill;
11
43
44public class AbyssalBludgen extends PlayerMeleeStrategy {
45
46 private static final Animation ANIMATION = new Animation(3299, UpdatePriority.HIGH);
47 private static final Graphic GRAPHIC = new Graphic(1284, UpdatePriority.HIGH);
48
49 private static final AbyssalBludgen INSTANCE = new AbyssalBludgen();
50
51 @Override
52 public void hitsplat(Player attacker, Mob defender, Hit hit) {
53 super.hitsplat(attacker, defender, hit);
54 defender.graphic(GRAPHIC);
55 }
56
57 @Override
58 public int modifyDamage(Player attacker, Mob defender, int damage) {
59 int level = attacker.skills.getLevel(Skill.PRAYER);
60 int max = attacker.skills.getMaxLevel(Skill.PRAYER);
61 return damage + damage * (max - level) / 200;
62 }
63
64 @Override
65 public Animation getAttackAnimation(Player attacker, Mob defender) {
66 return ANIMATION;
67 }
68
69 public static AbyssalBludgen get() {
70 return INSTANCE;
71 }
72
73}