new Treasure()
- Source:
Methods
CollectionTime() → {number}
- Source:
Returns:
- The time in miliseconds it takes to collect this treasure.
- Type
- number
IsAvailable() → {boolean}
We might live long enough for a collecting entity
to find us again after taking us.
- Source:
Returns:
- Whether we are taken already.
- Type
- boolean
Resources() → {Object}
- Source:
Returns:
- The resources given by this treasure.
- Type
- Object
Reward(entity) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
entity |
number | The entity collecting us. |
- Source:
Returns:
- Whether the reward was granted.
- Type
- boolean