Medical Treatment - Fix bandage effectiveness (#9865)

* fix broken bandages

* update params
This commit is contained in:
BrettMayson 2024-03-19 01:56:05 -06:00 committed by GitHub
parent e7827813ee
commit c5b54c65a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,9 @@
* 1: Patient <OBJECT>
* 2: Body Part <STRING>
* 3: Treatment <STRING>
* 4: Bandage effectiveness coefficient <NUMBER> (default: 1)
* 4: Item User <OBJECT>
* 5: Used Item <STRING>
* 6: Bandage effectiveness coefficient <NUMBER> (default: 1)
*
* Return Value:
* None
@ -19,10 +21,10 @@
* Public: No
*/
_this set [4, _this param [4, 1]]; // set default Bandage effectiveness coefficient
_this set [6, _this param [6, 1]]; // set default Bandage effectiveness coefficient
[QGVAR(bandaged), _this] call CBA_fnc_localEvent; // Raise event with reference so mods can modify this
params ["_medic", "_patient", "_bodyPart", "_classname", "_bandageEffectiveness"];
params ["_medic", "_patient", "_bodyPart", "_classname", "", "", "_bandageEffectiveness"];
[_patient, "activity", LSTRING(Activity_bandagedPatient), [[_medic, false, true] call EFUNC(common,getName)]] call FUNC(addToLog);