722 B
722 B
event onPlayerChangeMaxMana
This event is triggered when player maximum mana changes.
Original: onPlayerChangeMaxMana
Parameters
dictkwargs:intplayerid: the id of the player maximum mana points gets changed.intoldMaxMP: the previous maximum mana points of the player.intnewMaxMP: the new maximum mana points of the player.
Usage
import g2o
@g2o.event('onPlayerChangeMaxMana')
def onChangeMaxMana(**kwargs):
print(f'Player {kwargs['playerid']} changed maximum mana: {kwargs['oldMaxMP']} -> {kwargs['newMaxMP']}')