Statistic value for destroyed buildings

This commit is contained in:
Wyqer 2019-06-18 16:08:28 +02:00
parent c42e8f544c
commit a76fe399e1
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 3 additions and 1 deletions

View File

@ -4,11 +4,13 @@ if (_sector in sectors_bigtown || _sector in sectors_capture) then {
if (KP_liberation_civrep_debug > 0) then {diag_log format ["[KP LIBERATION] [CIVREP] liberatedSector called at: %1 - Sector: %2", time, markerText _sector];};
private _penalty = 0;
{
if (_sector == (_x select 0)) exitWith {_penalty = (_x select 1) - ([_sector] call F_cr_getBuildings)};
} forEach KP_liberation_cr_sectorbuildings;
stats_civilian_buildings_destroyed = stats_civilian_buildings_destroyed + _penalty;
_penalty = _penalty * KP_liberation_cr_building_penalty;
if (_penalty > 0) then {