mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
small upgrade fix
This commit is contained in:
parent
9698eb9e08
commit
99f8f58998
@ -115,14 +115,14 @@ if (_object isKindOf "Constructions_static_F" || {(typeof _object) in (call EPOC
|
|||||||
|
|
||||||
_upgradeto = _upgrade select 0;
|
_upgradeto = _upgrade select 0;
|
||||||
if (_upgradeto in _doors) then {
|
if (_upgradeto in _doors) then {
|
||||||
_countdoors = count (nearestobjects [_nearestJammer,_doors,_buildingJammerRange]);
|
_countdoors = count ((nearestobjects [_nearestJammer,_doors,_buildingJammerRange]) - [_object]);
|
||||||
if (_countdoors >= _maxdoors) then {
|
if (_countdoors >= _maxdoors) then {
|
||||||
_canUpgrade = false;
|
_canUpgrade = false;
|
||||||
_missingParts = format["Can not upgrade to locked Door / Stairs! Max %1 allowed per Base!", _maxdoors];
|
_missingParts = format["Can not upgrade to locked Door / Stairs! Max %1 allowed per Base!", _maxdoors];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
if (_upgradeto in _gates) then {
|
if (_upgradeto in _gates) then {
|
||||||
_countgates = count (nearestobjects [_nearestJammer,_gates,_buildingJammerRange]);
|
_countgates = count ((nearestobjects [_nearestJammer,_gates,_buildingJammerRange]) - [_object]);
|
||||||
if (_countgates >= _maxgates) then {
|
if (_countgates >= _maxgates) then {
|
||||||
_canUpgrade = false;
|
_canUpgrade = false;
|
||||||
_missingParts = format["Can not upgrade to Gate! Max %1 allowed per Base!", _maxgates];
|
_missingParts = format["Can not upgrade to Gate! Max %1 allowed per Base!", _maxgates];
|
||||||
|
Loading…
Reference in New Issue
Block a user