mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Condensed duplicated function, alphabetized PREPs
This commit is contained in:
parent
161a75adc7
commit
fda0850ad7
@ -25,7 +25,7 @@ class ACE_Repair {
|
||||
class RemoveWheel: ReplaceWheel {
|
||||
displayName = CSTRING(RemoveWheel);
|
||||
displayNameProgress = CSTRING(RemovingWheel);
|
||||
condition = QUOTE(call FUNC(canRemoveWheel));
|
||||
condition = QUOTE(call FUNC(canRemove));
|
||||
callbackSuccess = QUOTE(call FUNC(doRemoveWheel));
|
||||
};
|
||||
class MiscRepair: ReplaceWheel {
|
||||
@ -46,7 +46,7 @@ class ACE_Repair {
|
||||
class RemoveTrack: MiscRepair {
|
||||
displayName = CSTRING(RemoveTrack);
|
||||
displayNameProgress = CSTRING(RemovingTrack);
|
||||
condition = QUOTE(call FUNC(canRemoveTrack));
|
||||
condition = QUOTE(call FUNC(canRemove));
|
||||
callbackSuccess = QUOTE(call FUNC(doRemoveTrack));
|
||||
requiredEngineer = QGVAR(engineerSetting_Wheel);
|
||||
};
|
||||
|
@ -3,19 +3,18 @@
|
||||
ADDON = false;
|
||||
|
||||
PREP(addRepairActions);
|
||||
PREP(canRemoveWheel);
|
||||
PREP(canRemoveTrack);
|
||||
PREP(canRemove);
|
||||
PREP(canRepair);
|
||||
PREP(canRepairTrack);
|
||||
PREP(canReplaceWheel);
|
||||
PREP(canReplaceTrack);
|
||||
PREP(doRemoveWheel);
|
||||
PREP(doRemoveTrack);
|
||||
PREP(doRepair);
|
||||
PREP(canReplaceWheel);
|
||||
PREP(doFullRepair);
|
||||
PREP(doRemoveTrack);
|
||||
PREP(doRemoveWheel);
|
||||
PREP(doRepair);
|
||||
PREP(doRepairTrack);
|
||||
PREP(doReplaceWheel);
|
||||
PREP(doReplaceTrack);
|
||||
PREP(doReplaceWheel);
|
||||
PREP(getPostRepairDamage);
|
||||
PREP(getWheelHitPointsWithSelections);
|
||||
PREP(hasItems);
|
||||
@ -23,10 +22,10 @@ PREP(isEngineer);
|
||||
PREP(isInRepairFacility);
|
||||
PREP(isNearRepairVehicle);
|
||||
PREP(isRepairVehicle);
|
||||
PREP(moduleRepairSettings);
|
||||
PREP(moduleAssignEngineer);
|
||||
PREP(moduleAssignRepairVehicle);
|
||||
PREP(moduleAssignRepairFacility);
|
||||
PREP(moduleRepairSettings);
|
||||
PREP(normalizeHitPoints);
|
||||
PREP(repair);
|
||||
PREP(repair_failure);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Author: commy2
|
||||
* Check if the unit can remove given wheel of the vehicle.
|
||||
* Check if the unit can remove given wheel/track of the vehicle.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Unit that does the repairing <OBJECT>
|
||||
@ -8,10 +8,10 @@
|
||||
* 2: Selected hitpoint <STRING>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
* Can Remove <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* [unit, vehicle, "hitpoint"] call ace_repair_fnc_canRemoveTrack
|
||||
* [unit, vehicle, "hitpoint"] call ace_repair_fnc_canRemove
|
||||
*
|
||||
* Public: No
|
||||
*/
|
@ -1,23 +0,0 @@
|
||||
/*
|
||||
* Author: commy2
|
||||
* Check if the unit can remove given wheel of the vehicle.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Unit that does the repairing <OBJECT>
|
||||
* 1: Vehicle to repair <OBJECT>
|
||||
* 2: Selected hitpoint <STRING>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [unit, vehicle, "hitpoint"] call ace_repair_fnc_canRemoveWheel
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
#include "script_component.hpp"
|
||||
|
||||
params ["_unit", "_target", "_hitPoint"];
|
||||
TRACE_3("params",_unit,_target,_hitPoint);
|
||||
|
||||
alive _target && {_target getHitPointDamage _hitPoint < 1}
|
Loading…
Reference in New Issue
Block a user