mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
30 lines
607 B
Plaintext
30 lines
607 B
Plaintext
|
/*
|
||
|
* Author: Alganthe
|
||
|
* ROF text statement.
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: stat (STRING)
|
||
|
* 1: item config path (CONFIG)
|
||
|
* 2: Args for configExtreme
|
||
|
* 2.1: Stat limits (ARRAY of BOOL)
|
||
|
* 2.2: Evaluate as a logarithmic number (BOOL)
|
||
|
*
|
||
|
* Return Value:
|
||
|
* Number
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
#include "script_component.hpp"
|
||
|
|
||
|
params ["_stat", "_config", "_args"];
|
||
|
_args params ["_statMinMax", "_configExtremeBool"];
|
||
|
|
||
|
private _statValues = [
|
||
|
[_config],
|
||
|
[_stat],
|
||
|
[_configExtremeBool],
|
||
|
[_statMinMax select 0]
|
||
|
] call BIS_fnc_configExtremes;
|
||
|
|
||
|
format ["%1 rpm", round (60 / ((_statValues select 1) select 0))]
|