Tile - YResource - Get Maximum Resource Value – Ylands
Jump to navigation
Jump to search
Get Maximum Resource Value(Player, Resource)
static getMaxResourceValue(player: YCharacter, resource: YResource): number;
Parameters
player
resource
Returns
number
Availability
Description
Allows to get the maximum amount of target Resource the player can hold.
Notes
- Resource is utilized by custom *skills.
Get Maximum Resource Value(Resource)
static getMaxResourceValue(resource: YResource): number;
Parameters
resource
Returns
number
Availability
Description
Returns the maximum value of the resource.