Tile - YResource - Has Resource – Ylands
Jump to navigation
Jump to search
(Created page with "<!--- THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. --> == Has Resource(Player, Resource) == File:Yland...") |
No edit summary |
||
Line 16: | Line 16: | ||
'''boolean''' | '''boolean''' | ||
=== Availability === | |||
[[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
Line 24: | Line 28: | ||
* '''Resource''' is utilized by custom *''skills''. | * '''Resource''' is utilized by custom *''skills''. | ||
== Has Resource(Resource) == | |||
[[File:YlandsTile-1216.png]] | |||
<pre>static hasResource(resource: YResource): boolean;</pre> | |||
=== Parameters === | |||
==== resource ==== | |||
=== Returns === | |||
'''boolean''' | |||
=== Availability === | |||
[[Ylands:Tile Availability - Client|Client]] | |||
=== Description === | |||
Returns true/false whether the client has the resource assigned. | |||
Revision as of 11:16, 12 November 2021
Has Resource(Player, Resource)
static hasResource(player: YCharacter, resource: YResource): boolean;
Parameters
player
resource
Returns
boolean
Availability
Description
Returns whether the target player has the target Resource attached.
Notes
- Resource is utilized by custom *skills.
Has Resource(Resource)
static hasResource(resource: YResource): boolean;
Parameters
resource
Returns
boolean
Availability
Description
Returns true/false whether the client has the resource assigned.