LevelScaling

public class LevelScaling

Owns the live, playtested EliteMobs combat curve: exponential elite health plus the offensive and defensive skill adjustments used by the damage pipelines. Advanced level-difference damage modifiers intentionally do not live here.

Properties

Link copied to clipboard
public final static double BASE_MOB_HP
Base HP constant for the exponential scaling formula.
Link copied to clipboard
public final static double DEFAULT_MINECRAFT_MAX_HEALTH
Fallback maximum mob health allowed.
Link copied to clipboard
public final static double LEVELS_PER_POWER_DOUBLE
How many levels difference results in power multiplication by SCALING_BASE.
Link copied to clipboard
public final static double OFFENSIVE_SKILL_SCALING_RATE
Controls how fast the skill-based damage adjustment scales exponentially in the offensive (player→elite) damage formula.
Link copied to clipboard
public final static double REFERENCE_ATTACK_SPEED
Reference weapon attack speed used to define TARGET_HITS_TO_KILL_MOB.
Link copied to clipboard
public final static double SCALING_BASE
The base of the exponential scaling formula.
Link copied to clipboard
public final static double SKILL_SCALING_RATE
Controls how fast the skill-based damage adjustment scales exponentially in the defensive (elite→player) damage formula.
Link copied to clipboard
public final static double TARGET_HITS_TO_KILL_MOB
Target number of sword hits to kill a standard elite mob (healthMultiplier=1.0) at matched combat (weapon skill level == mob level, weapon level == mob level).
Link copied to clipboard
public final static double TARGET_HITS_TO_KILL_PLAYER
Target number of hits for a player to die when fighting same-level content with full appropriate gear and defensive skills.

Functions

Link copied to clipboard
public static double calculateBaseDamageToElite(int mobLevel)
Calculates the base damage a player should deal per sword hit to a normalized elite mob (healthMultiplier=1.0) at the given mob level.
Link copied to clipboard
public static double calculateMobHealth(int level, double baseEntityHP)
Calculates mob health using pure exponential level scaling.
Link copied to clipboard
public static double calculateOffensiveSkillAdjustment(int weaponSkillLevel, int mobLevel)
Calculates the offensive skill adjustment multiplier.
Link copied to clipboard
public static double getMinecraftMaxHealth()