|
Mechanic: AmmoConsume
|
|
## Description
|
|
================
|
|
|
|
|
|
|
|
Consumes ammo to execute a skill. This skill does not need a targeter.
|
|
Consumes ammo to execute a skill. This skill does not need a targeter.
|
|
|
|
|
|
Attributes
|
|
## Attributes
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|:---------:|:--------------------:|:----------------------------------------------:|:-------:|
|
|
|:---------:|:--------------------:|:----------------------------------------------:|:-------:|
|
|
| amount | a | How many ammo is consumed | 1 |
|
|
| amount | a | How many ammo is consumed | 1 |
|
... | @@ -13,10 +9,9 @@ Attributes |
... | @@ -13,10 +9,9 @@ Attributes |
|
| onNoAmmo | noAmmoSkill, noAmmo | The skill to trigger when there's no ammo left | |
|
|
| onNoAmmo | noAmmoSkill, noAmmo | The skill to trigger when there's no ammo left | |
|
|
|
|
|
|
|
|
|
|
Examples
|
|
## Examples
|
|
--------
|
|
|
|
```yaml
|
|
```yaml
|
|
MyItem:
|
|
MyItem:
|
|
Skills:
|
|
Skills:
|
|
- ammoconsume{amount=1;onConsume=ConsumeMetaSkill;onNoAmmo=NoAmmoMetaSkill}
|
|
- ammoconsume{amount=1;onConsume=ConsumeMetaSkill;onNoAmmo=NoAmmoMetaSkill}
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |