Skip to content

Commit

Permalink
Fix deteriorate time
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueTheKing committed Oct 30, 2023
1 parent f0c2d0b commit 75b8cc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/circulation/functions/fnc_handleCardiacArrest.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ if (_initial) then {
if (GVAR(AdvRhythm_canDeteriorate)) then {
private _timeToDeteriorate = 0;

if (GVAR(AdvRhythm_deteriorateTimeWeight) < GVAR(AdvRhythm_deteriorateTimeWeight)) then {
_timeToDeteriorate = random [20, GVAR(AdvRhythm_deteriorateTimeWeight), GVAR(AdvRhythm_deteriorateTimeWeight)];
if (GVAR(AdvRhythm_deteriorateTimeWeight) < GVAR(AdvRhythm_deteriorateTimeMax)) then {
_timeToDeteriorate = random [20, GVAR(AdvRhythm_deteriorateTimeWeight), GVAR(AdvRhythm_deteriorateTimeMax)];
} else {
_timeToDeteriorate = random [20, GVAR(AdvRhythm_deteriorateTimeWeight) / 2, GVAR(AdvRhythm_deteriorateTimeWeight)];
_timeToDeteriorate = random [20, GVAR(AdvRhythm_deteriorateTimeMax) / 2, GVAR(AdvRhythm_deteriorateTimeMax)];
};

switch (_cardiacArrestType) do {
Expand Down

0 comments on commit 75b8cc1

Please sign in to comment.