File tree Expand file tree Collapse file tree
X2WOTCCommunityHighlander Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ All notable changes to Vanilla 'War Of The Chosen' Behaviour will be documented
119119 applied to targets (#89 )
120120- Added ability to prevent multi-part missions counting as separate missions
121121 for will loss purposes (#44 )
122+ - Added option to mitigate all weapon damage using armor instead of always taking at
123+ least 1 damage (#321 )
122124
123125### Modding Exposures
124126- Deprivatise variables to protected in XComIdleAnimationStateMachine to allow
Original file line number Diff line number Diff line change 1515+PlayerTurnOrder =eTeam_Two
1616
1717[XComGame.X2AbilityToHitCalc_StandardAim]
18- ; +CritUpgradesThatDontUseEffects="MyFancyTemplateName" ;For modders to use to specify upgrades in their mods that use Issue #237 functionality
18+ ; +CritUpgradesThatDontUseEffects="MyFancyTemplateName" ;For modders to use to specify upgrades in their mods that use Issue #237 functionality
19+
20+ ; Issue 321
21+ ; Set to false/commented out (vanilla behaviour) if you want to still damage the target by 1 even if armor is more than incoming damage
22+ ; Set to true/uncomment it if you want damage that is less than target armor to be completely neutralized
23+ [XComGame.X2Effect_ApplyWeaponDamage]
24+ ; +NO_MINIMUM_DAMAGE=true
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ var bool bIgnoreArmor;
1919var bool bBypassSustainEffects ;
2020var array <name > HideVisualizationOfResultsAdditional ;
2121
22+ // Issue #321
23+ var config bool NO_MINIMUM_DAMAGE ;
24+
2225// These values are extra amount an ability may add or apply directly
2326var WeaponDamageValue EffectDamageValue ;
2427var int EnvironmentalDamageAmount ;
@@ -1036,7 +1039,8 @@ simulated function int CalculateDamageAmount(const out EffectAppliedData ApplyEf
10361039 ArmorMitigation -= ArmorPiercing ;
10371040 if (ArmorMitigation < 0 )
10381041 ArmorMitigation = 0 ;
1039- if (ArmorMitigation >= WeaponDamage )
1042+ // Issue #321
1043+ if (ArmorMitigation >= WeaponDamage && !default .NO_MINIMUM_DAMAGE )
10401044 ArmorMitigation = WeaponDamage - 1 ;
10411045 if (ArmorMitigation < 0 ) // WeaponDamage could have been 0
10421046 ArmorMitigation = 0 ;
You can’t perform that action at this time.
0 commit comments