Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repair - Handle depends = "0" #5283

Merged
merged 2 commits into from
Jun 23, 2017
Merged

Repair - Handle depends = "0" #5283

merged 2 commits into from
Jun 23, 2017

Conversation

PabstMirror
Copy link
Contributor

Close #5180
Depends can be "0" and still haven no effect

https://community.bistudio.com/wiki/Arma_3_Jets_Hitpoint_Configuration

depends - simple expressions for creating dependencies between hitpoints. Clearing 'depends' in case of inheritance cannot be an empty string (rpt warnings), but rather a "0" value. It can be used for more detailed damage model.

@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Jun 16, 2017
@PabstMirror PabstMirror added this to the 3.11.0 milestone Jun 16, 2017
@@ -79,7 +79,8 @@ _processedHitpoints = [];
if (_selection isEqualTo "") exitWith { TRACE_3("Selection Empty",_hitpoint,_forEachIndex,_selection); };
if (_hitpoint isEqualTo "") exitWith { TRACE_3("Hitpoint Empty",_hitpoint,_forEachIndex,_selection); };
//Depends hitpoints shouldn't be modified directly (will be normalized)
if (isText (configFile >> "CfgVehicles" >> _type >> "HitPoints" >> _hitpoint >> "depends")) exitWith {
// >Clearing 'depends' in case of inheritance cannot be an empty string (rpt warnings), but rather a "0" value.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray >?

@PabstMirror PabstMirror merged commit f33ff4e into master Jun 23, 2017
@PabstMirror PabstMirror deleted the repairDepends0 branch June 23, 2017 03:58
@PabstMirror PabstMirror modified the milestones: 3.10.2, 3.11.0 Jul 8, 2017
jonpas pushed a commit that referenced this pull request Jul 10, 2017
* Repair - Handle depends = "0"

* quote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants