Effect

Methods
2
Fields
None

Getting one

ItemStatChanges.ATTACK_POT
ItemStatChanges.STRENGTH_POT
ItemStatChanges.DEFENCE_POT

Methods

MethodReturnsDescription
calculate(Client)StatsChangesThe changes using the item now would make, from the player's current and real levels, run energy, worn items and the league relic varbits.…
equals(any)booleanWhether other is the same effect (== answers the same); false for anything else.

Returned by

MethodReturnsDescription
ItemStatChanges.getEffect?The item's effect, or nil for an item with none.
ItemStatChangesService.getItemStatChangesEffect?The item's effect, or nil.

Method details

calculate

calculate: (Effect, Client) -> StatsChanges

The changes using the item now would make, from the player's current and real levels, run energy, worn items and the league relic varbits. Pass the client global.

equals

equals: (Effect, any) -> boolean

Whether other is the same effect (== answers the same); false for anything else.