mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-17 09:53:21 +03:00
Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker than forEach.
This commit is contained in:
@@ -70,12 +70,12 @@ if (_hasoutput && _invehicle) then {
|
||||
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
|
||||
};
|
||||
|
||||
if (_rawfood and !_rawexceptions and (random 15 < 1)) then {
|
||||
if (_rawfood && !_rawexceptions && (random 15 < 1)) then {
|
||||
r_player_infected = true;
|
||||
player setVariable["USEC_infected",true,true];
|
||||
};
|
||||
|
||||
if (_badfood and (random 2 < 1)) then {
|
||||
if (_badfood && (random 2 < 1)) then {
|
||||
r_player_infected = true;
|
||||
player setVariable["USEC_infected",true,true];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user