mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 08:06:43 +01:00
modifies the hollow metrics API; that'll probably be implemented soon adds init stages changes SSatoms to not abuse its `initialized` variable closes #6858
24 lines
629 B
Plaintext
24 lines
629 B
Plaintext
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2024 Citadel Station Developers *//
|
|
|
|
/**
|
|
* nested numerical metric
|
|
*
|
|
* This is what you can use for things like:
|
|
*
|
|
* * How many times an admin verb was pressed in a round
|
|
*/
|
|
/datum/metric/nested_numerical
|
|
|
|
/**
|
|
* overwrites a nested numerical metric
|
|
*/
|
|
/proc/metric_set_nested_numerical(datum/metric/nested_numerical/typepath, key = "--unset--", amount)
|
|
return
|
|
|
|
/**
|
|
* increments a nested numerical metric
|
|
*/
|
|
/proc/metric_increment_nested_numerical(datum/metric/nested_numerical/typepath, key = "--unset--", amount = 1)
|
|
return
|