mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
remove second rng
This commit is contained in:
parent
e6852a4f5e
commit
c198fd69e0
@ -22,14 +22,10 @@ if (getNumber(configFile >> "CfgEpoch" >> worldname >> "shipwreckLootEnabled") i
|
||||
_shipwrecks = (_shipwrecks call BIS_fnc_arrayShuffle) resize 12;
|
||||
};
|
||||
{
|
||||
// 20 percent chance for loot to spawn
|
||||
if ((random 1) <= 0.4) then {
|
||||
_item = createVehicle["container_epoch", _x, [], 0, "NONE"];
|
||||
_item setMass 220;
|
||||
|
||||
if (EPOCH_SHOW_BOATLOOT) then {
|
||||
_markers = ["Shipwreck",_x] call EPOCH_server_createGlobalMarkerSet;
|
||||
};
|
||||
_item = createVehicle["container_epoch", _x, [], 0, "NONE"];
|
||||
_item setMass 220;
|
||||
if (EPOCH_SHOW_BOATLOOT) then {
|
||||
_markers = ["Shipwreck",_x] call EPOCH_server_createGlobalMarkerSet;
|
||||
};
|
||||
} foreach _shipwrecks;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user