Make HitShape mandatory for damaging actors and refactor warheads.

* Adds support for linking Armor traits to HitShapes.
* Adds spread support to TargetDamageWarhead
* Removes ring-damage support from HealthPercentageDamage
* Removes IsValidAgainst check from DoImpact(Actor victim...) overload
  and instead lets warheads perform the check beforehand
  (to avoid HitShape look-ups on invalid targets).
* Reduces duplication and improves readability of Warhead implementations
This commit is contained in:
reaperrr
2018-10-25 21:15:34 +00:00
committed by reaperrr
parent e2050dfdc9
commit f18ce8cfda
8 changed files with 123 additions and 89 deletions

View File

@@ -11,6 +11,9 @@
namespace OpenRA.Mods.Common.Traits
{
// Type tag for armor type bits
public class ArmorType { }
[Desc("Used to define weapon efficiency modifiers with different percentages per Type.")]
public class ArmorInfo : ConditionalTraitInfo
{