HomeWildfire Games

Rework PreferredClasses to target either Human or Human/Siege.

Description

Rework PreferredClasses to target either Human or Human/Siege.

'Hack' melee units had a preference towards Siege units. This made them awkward to use in some fights.
PreferredClasses is not intended to remove Micro from the player's hand but to prevent units from attacking unlikely targets (e.g. ships for land units).

As such, this reworks PreferredClasses so that:

  • Ranged & Spearmen/Pikemen (which deal Pierce damage) target Human units, against which they are reasonably effective.
  • Other units target either Human or Siege units with no particular preference (Unit+!Ship).

This further specifies the preferred classes for all base templates for easier modification, since extending this list (ordered by priority) is tricky.

Patch by: borg-

Reviewed By: Nescio, wraitii

Differential Revision: https://code.wildfiregames.com/D2851

Event Timeline

Nescio added a subscriber: Nescio.Jul 14 2020, 10:48 AM

'Hack' melee units had a preference towards Siege units. This made them awkward to use in some fights.

Actually their preference was Human first, Siege afterwards. Now it is Human or Siege in no particular order.

'Hack' melee units had a preference towards Siege units. This made them awkward to use in some fights.

Actually their preference was Human first, Siege afterwards. Now it is Human or Siege in no particular order.

Ah thanks, I misread the inheritance :p