1package com.runehive.game.world.entity.combat.formula;
3import com.runehive.game.world.entity.combat.FormulaModifier;
4import com.runehive.game.world.entity.combat.attack.FightType;
5import com.runehive.game.world.entity.mob.Mob;
6import com.runehive.game.world.entity.mob.prayer.Prayer;
7import com.runehive.game.world.entity.skill.Skill;
8import com.runehive.game.world.items.containers.equipment.Equipment;
16 int effectiveAccuracy = attacker.
getCombat().modifyRangedLevel(defender, level);
23 return 8 + attacker.
getCombat().modifyRangedLevel(defender, level);
30 int effectiveDefence = defender.
getCombat().modifyDefenceLevel(attacker, level);
37 return attacker.
getCombat().modifyOffensiveBonus(defender, bonus);
43 return attacker.
getCombat().modifyAggresiveBonus(defender, bonus);
49 return defender.
getCombat().modifyDefensiveBonus(attacker, bonus);
54 damage = attacker.
getCombat().modifyDamage(defender, damage);
56 damage *= !attacker.
isPlayer() || defender.
isNpc() ? 0.0 : 0.6;
final SkillManager skills
abstract Combat<? extends Mob > getCombat()
The combat of the mob.
final boolean isNpc()
Check if an entity is an npc.
final boolean isPlayer()
Check if an entity is a player.
boolean isActive(Prayer... prayers)
Checks if all given prayers are active.
Represents a trainable and usable skill.
static final int RANGED
The ranged skill id.
static final int DEFENCE
The defence skill id.
int getLevel(int id)
Gets the level of a skill.
The container that manages the equipment for a player.
static final int RANGED_OFFENSE
static final int RANGED_STRENGTH
static final int RANGED_DEFENSE
int getDefensiveIncrease()
int getAccuracyIncrease()
The enumerated type whose elements represent the fighting types.
final FightStyle getStyle()
Gets the style active when this type is active.