Skip to content

Profectus / features/resources/resource / trackOOMPS

Function: trackOOMPS() ​

trackOOMPS(resource, pointGain?): Ref<string>

Returns a reference to the amount of resource being gained in terms of orders of magnitude per second, calcualted over the last tick. Useful for situations where the gain rate is increasing very rapidly.

Parameters ​

resource ​

Resource

pointGain? ​

ComputedRef<DecimalSource>

Returns ​

Ref<string>

Defined in ​

profectus/src/features/resources/resource.ts:93