1package com.runehive.game.world.entity.combat.attack.listener.item;
3import com.runehive.game.Graphic;
4import com.runehive.game.UpdatePriority;
5import com.runehive.game.world.entity.combat.CombatType;
6import com.runehive.game.world.entity.combat.attack.listener.ItemCombatListenerSignature;
7import com.runehive.game.world.entity.combat.attack.listener.SimplifiedListener;
8import com.runehive.game.world.entity.combat.hit.Hit;
9import com.runehive.game.world.entity.mob.Mob;
10import com.runehive.game.world.entity.mob.player.Player;
23 if (Math.random() > 0.30) {
24 hit.modifyDamage(damage -> damage * 3 / 4);
Represents a single graphic that can be used by entities.
void hit(T attacker, Mob defender, Hit hit)
Handles the Elysian spirit shield listener.
void block(Mob attacker, Player defender, Hit hit, CombatType combatType)
A Hit object holds the damage amount and hitsplat data.
Optional< Graphic > graphic
This class represents a character controlled by a player.
Represents different priorities for updating.