Function __global->update_stat
Definitions
sources/config.php
- Increment the specified stored value, by the specified amount.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $stat | ID_TEXT | No | No | required parameter | N/A | N/A | The codename for the stat |
| $increment | integer | No | No | required parameter | N/A | N/A | What to increment the statistic by |
Preview
Code (PHP)
/**
* Increment the specified stored value, by the specified amount.
*
* @param ID_TEXT $stat The codename for the stat
* @param integer $increment What to increment the statistic by
*/
function update_stat(string $stat, int $increment)
* Increment the specified stored value, by the specified amount.
*
* @param ID_TEXT $stat The codename for the stat
* @param integer $increment What to increment the statistic by
*/
function update_stat(string $stat, int $increment)

