Skip to content

Commit

Permalink
Make Hunter banelings a bit smarter with picking their targets.
Browse files Browse the repository at this point in the history
Banelings should pick closer targets first before jumping to more distant ones
Also fix some typos
  • Loading branch information
Ziktofel committed Jun 15, 2024
1 parent 41e6d5b commit 5b7fd64
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3139,8 +3139,10 @@
<Modification>
<WeaponEnableArray value="AP_HotSBanelingLaunchBuilding"/>
<WeaponEnableArray value="AP_HotSBanelingLaunchBuildingSmall"/>
<WeaponEnableArray value="AP_BanelingSeekTargetBuilding"/>
<WeaponDisableArray value="AP_HotSBanelingLaunch"/>
<WeaponDisableArray value="AP_HotSBanelingLaunchSmall"/>
<WeaponDisableArray value="AP_BanelingSeekTarget"/>
</Modification>
</CBehaviorBuff>
<CBehaviorBuff id="AP_MatrixOverload">
Expand Down Expand Up @@ -6957,4 +6959,12 @@
<Duration value="30"/>
<TimeScaleSource Value="Global"/>
</CBehaviorBuff>
<CBehaviorBuff id="AP_BanelingSeekingTarget">
<InfoFlags index="Hidden" value="1"/>
<Duration value="1"/>
<Modification>
<WeaponDisableArray value="AP_BanelingSeekTarget"/>
<WeaponDisableArray value="AP_BanelingSeekTargetBuilding"/>
</Modification>
</CBehaviorBuff>
</Catalog>
19 changes: 17 additions & 2 deletions Mods/ArchipelagoPlayer.SC2Mod/Base.SC2Data/GameData/EffectData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@
<AttributeBonus index="Massive" value="10"/>
<Amount value="25"/>
<Death value="Blast"/>
<ValidatorArray value="AP_TargetIsNotGroundOrNotInThorGroundRagne"/>
<ValidatorArray value="AP_TargetIsNotGroundOrNotInThorGroundRange"/>
<SearchFilters value="Air;Self,Player,Ally,Neutral,Missile,Stasis,Dead,Hidden,Invulnerable"/>
<SearchFlags index="OffsetByUnitRadius" value="0"/>
</CEffectDamage>
Expand Down Expand Up @@ -1831,7 +1831,7 @@
<AttributeBonus index="Massive" value="10"/>
<Amount value="40"/>
<Death value="Blast"/>
<ValidatorArray value="AP_TargetIsNotGroundOrNotInThorGroundRagne"/>
<ValidatorArray value="AP_TargetIsNotGroundOrNotInThorGroundRange"/>
<SearchFilters value="Air;Self,Player,Ally,Neutral,Missile,Stasis,Dead,Hidden,Invulnerable"/>
<SearchFlags index="OffsetByUnitRadius" value="0"/>
</CEffectDamage>
Expand Down Expand Up @@ -16801,4 +16801,19 @@
<EditorCategories value="Race:Zerg"/>
<Behavior value="AP_Contaminated"/>
</CEffectApplyBehavior>
<CEffectSet id="AP_BanelingSeekTargetSet">
<EffectArray value="AP_BanelingSeekTargetAB"/>
<EffectArray value="AP_BanelingSeekTargetIssueOrder"/>
<ValidatorArray value="CasterNotHoldingPosition"/>
</CEffectSet>
<CEffectApplyBehavior id="AP_BanelingSeekTargetAB">
<Behavior value="AP_BanelingSeekingTarget"/>
<WhichUnit Value="Caster"/>
</CEffectApplyBehavior>
<CEffectIssueOrder id="AP_BanelingSeekTargetIssueOrder">
<EditorCategories value="Race:Zerg"/>
<Abil value="attack"/>
<Target Value="TargetUnit"/>
<WhichUnit Value="Caster"/>
</CEffectIssueOrder>
</Catalog>
Original file line number Diff line number Diff line change
Expand Up @@ -13835,6 +13835,8 @@
<BehaviorArray Link="AP_MalignantCreepFix"/>
<WeaponArray Link="AP_HotSBanelingExplode"/>
<WeaponArray Link="AP_HotSBanelingExplodeBuilding"/>
<WeaponArray Link="AP_BanelingSeekTarget"/>
<WeaponArray Link="AP_BanelingSeekTargetBuilding"/>
<WeaponArray Link="AP_HotSBanelingLaunch"/>
<WeaponArray Link="AP_HotSBanelingLaunchBuilding"/>
<CardLayouts>
Expand Down Expand Up @@ -14069,6 +14071,8 @@
<BehaviorArray Link="AP_MalignantCreepFix"/>
<WeaponArray Link="AP_HotSBanelingExplodeSmall"/>
<WeaponArray Link="AP_HotSBanelingExplodeBuildingSmall"/>
<WeaponArray Link="AP_BanelingSeekTarget"/>
<WeaponArray Link="AP_BanelingSeekTargetBuilding"/>
<WeaponArray Link="AP_HotSBanelingLaunchSmall"/>
<WeaponArray Link="AP_HotSBanelingLaunchBuildingSmall"/>
<CardLayouts>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6500,6 +6500,8 @@
<Flags index="UpgradeCheat" value="0"/>
<EffectArray Operation="Set" Reference="Weapon,AP_HotSBanelingLaunch,Options[Disabled]" Value="0"/>
<EffectArray Operation="Set" Reference="Weapon,AP_HotSBanelingLaunchSmall,Options[Disabled]" Value="0"/>
<EffectArray Operation="Set" Reference="Weapon,AP_BanelingSeekTarget,Options[Disabled]" Value="0"/>
<EffectArray Operation="Set" Reference="Weapon,AP_BanelingSeekTargetBuilding,Options[Disabled]" Value="0"/>
<EffectArray Operation="Set" Reference="Unit,AP_Baneling,Subtitle" Value="UnitSubtitle/AP_HotSHunter"/>
<EffectArray Operation="Set" Reference="Unit,AP_BanelingBurrowed,Subtitle" Value="UnitSubtitle/AP_HotSHunter"/>
<EffectArray Operation="Set" Reference="Unit,AP_HotSSplitterlingMedium,Subtitle" Value="UnitSubtitle/AP_HotSHunter"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5483,10 +5483,7 @@
<Negate value="1"/>
<CombineArray value="AP_ThorGroundRange"/>
</CValidatorCombine>
<CValidatorUnitFilters id="AP_TargetIsNotGround">
<Filters value="-;Ground"/>
</CValidatorUnitFilters>
<CValidatorCombine id="AP_TargetIsNotGroundOrNotInThorGroundRagne">
<CValidatorCombine id="AP_TargetIsNotGroundOrNotInThorGroundRange">
<CombineArray value="AP_TargetIsNotGround"/>
<CombineArray value="AP_NotInThorGroundRange"/>
</CValidatorCombine>
Expand Down
19 changes: 19 additions & 0 deletions Mods/ArchipelagoPlayer.SC2Mod/Base.SC2Data/GameData/WeaponData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2102,6 +2102,25 @@
<LegacyOptions index="NoDeceleration" value="1"/>
<AllowedMovement value="Moving"/>
</CWeaponLegacy>
<CWeaponLegacy id="AP_BanelingSeekTarget">
<Options index="Disabled" value="1"/>
<Options index="Hidden" value="1"/>
<AcquireScanFilters value="-;Structure"/>
<MinimumRange value="0.25"/>
<Range value="3"/>
<Period value="1"/>
<DamagePoint value="0"/>
<Effect value="AP_BanelingSeekTargetSet"/>
</CWeaponLegacy>
<CWeaponLegacy id="AP_BanelingSeekTargetBuilding">
<Options index="Disabled" value="1"/>
<Options index="Hidden" value="1"/>
<MinimumRange value="0.25"/>
<Range value="3"/>
<Period value="1"/>
<DamagePoint value="0"/>
<Effect value="AP_BanelingSeekTargetSet"/>
</CWeaponLegacy>
<CWeaponLegacy id="AP_HotSBanelingLaunch">
<EditorCategories value="Race:Zerg"/>
<Options index="Disabled" value="1"/>
Expand Down

0 comments on commit 5b7fd64

Please sign in to comment.