StatsChanges

Methods
5
Fields
None

Getting one

StatsChanges.new(…)
ItemStatChanges.ATTACK_POT:calculate(…)

Methods

MethodReturnsDescription
getStatChanges(){StatChange}The changes, 1-based. Copies: setting one does not change this set. The empty slots of a StatsChanges.new(len) not yet set are left out;…
setStatChanges({StatChange})()Replace the changes (at most 32).
getPositivity()Positivity?How good the set is overall, or nil when set to none.
setPositivity(Positivity?)()Set how good the set is overall (nil: none).
new(number)StatsChangesStatsChanges.new(len): len empty slots (at most 32), NO_CHANGE.

Returned by

MethodReturnsDescription
Effect.calculateStatsChangesThe changes using the item now would make, from the player's current and real levels, run energy, worn items and the league relic varbits.…
StatsChangesClass.newStatsChangesStatsChanges.new(len): len empty slots (at most 32), NO_CHANGE.

Method details

getStatChanges

getStatChanges: (StatsChanges) -> {StatChange}

The changes, 1-based. Copies: setting one does not change this set. The empty slots of a StatsChanges.new(len) not yet set are left out; every effect fills all of its own.

new

new: (number) -> StatsChanges

StatsChanges.new(len): len empty slots (at most 32), NO_CHANGE.