rename WRange to WDist
This commit is contained in:
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.Common.Warheads
|
||||
[Desc("Duration of the upgrade (in ticks). Set to 0 for a permanent upgrade.")]
|
||||
public readonly int Duration = 0;
|
||||
|
||||
public readonly WRange Range = WRange.FromCells(1);
|
||||
public readonly WDist Range = WDist.FromCells(1);
|
||||
|
||||
// TODO: This can be removed after the legacy and redundant 0% = not targetable
|
||||
// assumption has been removed from the yaml definitions
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Warheads
|
||||
public class HealthPercentageDamageWarhead : DamageWarhead
|
||||
{
|
||||
[Desc("Size of the area. Damage will be applied to this area.", "If two spreads are defined, the area of effect is a ring, where the second value is the inner radius.")]
|
||||
public readonly WRange[] Spread = { new WRange(43) };
|
||||
public readonly WDist[] Spread = { new WDist(43) };
|
||||
|
||||
public override void DoImpact(WPos pos, Actor firedBy, IEnumerable<int> damageModifiers)
|
||||
{
|
||||
|
||||
@@ -17,13 +17,13 @@ namespace OpenRA.Mods.Common.Warheads
|
||||
public class SpreadDamageWarhead : DamageWarhead
|
||||
{
|
||||
[Desc("Range between falloff steps.")]
|
||||
public readonly WRange Spread = new WRange(43);
|
||||
public readonly WDist Spread = new WDist(43);
|
||||
|
||||
[Desc("Damage percentage at each range step")]
|
||||
public readonly int[] Falloff = { 100, 37, 14, 5, 2, 1, 0 };
|
||||
|
||||
[Desc("Ranges at which each Falloff step is defined. Overrides Spread.")]
|
||||
public WRange[] Range = null;
|
||||
public WDist[] Range = null;
|
||||
|
||||
public void InitializeRange()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user