Klasse ScalingContext

java.lang.Object
de.delinkedde.mobarenareborn.mob.ScalingContext

public final class ScalingContext extends Object
The runtime values that feed the scaling formulas when a wave is spawned.

Exposes the values both as typed accessors and as a variable map keyed by the names used in configuration formulas (for example current-wave, party-level). The base variable is supplied separately per stat by the MobScaler.

  • Konstruktordetails

    • ScalingContext

      public ScalingContext(int currentWave, int livePlayers, int initialPlayers, double partyLevel, int monsterLimit, double playerStrengthFactor)
      Parameter:
      currentWave - the wave number being spawned
      livePlayers - the number of players currently alive in the arena
      initialPlayers - the number of players when the round started
      partyLevel - the average class level of the party
      monsterLimit - the concurrent monster cap of the arena
      playerStrengthFactor - the multiplier applied for the current player count
  • Methodendetails

    • currentWave

      public int currentWave()
      Gibt zurück:
      the wave number being spawned
    • livePlayers

      public int livePlayers()
      Gibt zurück:
      the number of players currently alive in the arena
    • monsterLimit

      public int monsterLimit()
      Gibt zurück:
      the concurrent monster cap of the arena
    • toVariables

      @NotNull public @NotNull Map<String,Double> toVariables()
      Builds the formula variable map for this context.
      Gibt zurück:
      a mutable map of variable name to value