Modify Mp

Signature

modifyMp(characterAddress, amount)

Description

Adds or removes mp from a character.

If amount is lower than current mp, set character's steps (used to regenerate mp) to 0.

Arguments

Character Address

The battle unit keep address of a character.

Amount

The amount of mp added or removed.

If positive, mp is added. If negative, mp is removed.

Notes

If the character is affected by god mode, their mp and steps cannot be reduced.

The current mp is gradually updated to the new one in the battle stats section of the UI.

Last updated