Tile - YResource - Get Maximum Resource Value – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
Line 53: Line 53:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:27, 24 November 2023

Get Maximum Resource Value(Player, Resource)

YlandsTile-830.png

static getMaxResourceValue(player: YCharacter, resource: YResource): number;

Parameters

player

resource

Returns

number

Availability

Server

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)

YlandsTile-1214.png

static getMaxResourceValue(resource: YResource): number;

Parameters

resource

Returns

number

Availability

Client

Description

Returns the maximum value of the resource.