2015-06-13 17:17:26 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Calculates the personal aid kit treatment time based on amount of damage to heal
|
2015-06-12 09:42:49 +00:00
|
|
|
*
|
2015-06-13 17:17:26 +00:00
|
|
|
* Arguments:
|
|
|
|
* unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* treatment time <NUMBER>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [_target] call ace_medical_fnc_treatmentAdvanced_fullHealTreatmentTime
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-06-12 09:42:49 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-06-13 00:34:56 +00:00
|
|
|
private _totalDamage = 0;
|
2015-06-12 09:42:49 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
_totalDamage = _totalDamage + _x;
|
2015-08-22 17:47:23 +00:00
|
|
|
} forEach (_this getVariable [QGVAR(bodyPartStatus), []]);
|
2015-06-12 09:42:49 +00:00
|
|
|
|
|
|
|
(10 max (_totalDamage * 10) min 120)
|