Package de.delinkedde.mobarenareborn.mob
Klasse ScalingContext
java.lang.Object
de.delinkedde.mobarenareborn.mob.ScalingContext
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.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungScalingContext(int currentWave, int livePlayers, int initialPlayers, double partyLevel, int monsterLimit, double playerStrengthFactor) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintintintBuilds the formula variable map for this context.
-
Konstruktordetails
-
ScalingContext
public ScalingContext(int currentWave, int livePlayers, int initialPlayers, double partyLevel, int monsterLimit, double playerStrengthFactor) - Parameter:
currentWave- the wave number being spawnedlivePlayers- the number of players currently alive in the arenainitialPlayers- the number of players when the round startedpartyLevel- the average class level of the partymonsterLimit- the concurrent monster cap of the arenaplayerStrengthFactor- 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
Builds the formula variable map for this context.- Gibt zurück:
- a mutable map of variable name to value
-