public class RarityMultiplier
extends java.lang.Object
SpawnInfo
which mutates the rarity of the spawn if
the location it is trying to spawn at satisfies the condition and does not
satisfy the anticondition.Modifier and Type | Field and Description |
---|---|
SpawnCondition |
anticondition
The
SpawnCondition that must be failed to apply this multiplier. |
SpawnCondition |
condition
The
SpawnCondition that must be passed to apply this multiplier. |
float |
multiplier
The float by which to multiply the standard rarity should the conditions fit.
|
Constructor and Description |
---|
RarityMultiplier() |
Modifier and Type | Method and Description |
---|---|
float |
apply(SpawnInfo spawnInfo,
SpawnLocation spawnLocation,
float rarity)
Returns the transformed rarity if the given
SpawnLocation
satisfies the conditions, or the unmodified rarity otherwise. |
void |
onImport() |
public float multiplier
public SpawnCondition condition
SpawnCondition
that must be passed to apply this multiplier.public SpawnCondition anticondition
SpawnCondition
that must be failed to apply this multiplier.public float apply(SpawnInfo spawnInfo, SpawnLocation spawnLocation, float rarity)
SpawnLocation
satisfies the conditions, or the unmodified rarity otherwise.public void onImport()