Fix Full Repair menu not shown when damage returns 0 (#4621)

This commit is contained in:
Dystopian 2016-11-09 22:11:47 +03:00 committed by Glowbal
parent c5322bff37
commit 272ec37603

View File

@ -72,7 +72,7 @@ class ACE_Repair {
requiredEngineer = QGVAR(engineerSetting_fullRepair); requiredEngineer = QGVAR(engineerSetting_fullRepair);
repairLocations[] = {QGVAR(fullRepairLocation)}; repairLocations[] = {QGVAR(fullRepairLocation)};
repairingTime = 30; repairingTime = 30;
condition = "damage _target > 0"; condition = "0 < ({_x>0} count (getAllHitPointsDamage _target param [2,[]]))";
callbackSuccess = QUOTE(call FUNC(doFullRepair)); callbackSuccess = QUOTE(call FUNC(doFullRepair));
itemConsumed = QGVAR(consumeItem_ToolKit); itemConsumed = QGVAR(consumeItem_ToolKit);
}; };