Merge pull request #7318 from reaperrr/remove-percellwh
Removed PerCellDamageWarhead
This commit is contained in:
@@ -1031,6 +1031,17 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove PerCellDamageWarhead
|
||||||
|
if (engineVersion < 20150213)
|
||||||
|
{
|
||||||
|
if (depth == 1 && node.Value.Nodes.Exists(n => n.Key == "PerCellDamage"))
|
||||||
|
{
|
||||||
|
node.Value.Nodes.RemoveAll(n => n.Key == "PerCellDamage");
|
||||||
|
Console.WriteLine("The 'PerCellDamage' warhead has been removed.");
|
||||||
|
Console.WriteLine("Please use the 'SpreadDamage' warhead instead.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpgradeWeaponRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
UpgradeWeaponRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,6 @@
|
|||||||
<Compile Include="Widgets\Logic\Ingame\AddRaceSuffixLogic.cs" />
|
<Compile Include="Widgets\Logic\Ingame\AddRaceSuffixLogic.cs" />
|
||||||
<Compile Include="Widgets\Logic\ClassicProductionLogic.cs" />
|
<Compile Include="Widgets\Logic\ClassicProductionLogic.cs" />
|
||||||
<Compile Include="Widgets\Logic\DebugMenuLogic.cs" />
|
<Compile Include="Widgets\Logic\DebugMenuLogic.cs" />
|
||||||
<Compile Include="Warheads\PerCellDamageWarhead.cs" />
|
|
||||||
<Compile Include="Scripting\Properties\HarvesterProperties.cs" />
|
<Compile Include="Scripting\Properties\HarvesterProperties.cs" />
|
||||||
<Compile Include="Scripting\Properties\TransportProperties.cs" />
|
<Compile Include="Scripting\Properties\TransportProperties.cs" />
|
||||||
<Compile Include="Traits\InvulnerabilityUpgrade.cs" />
|
<Compile Include="Traits\InvulnerabilityUpgrade.cs" />
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
#region Copyright & License Information
|
|
||||||
/*
|
|
||||||
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
|
|
||||||
* This file is part of OpenRA, which is free software. It is made
|
|
||||||
* available to you under the terms of the GNU General Public License
|
|
||||||
* as published by the Free Software Foundation. For more information,
|
|
||||||
* see COPYING.
|
|
||||||
*/
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using OpenRA.Effects;
|
|
||||||
using OpenRA.GameRules;
|
|
||||||
using OpenRA.Traits;
|
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
|
||||||
{
|
|
||||||
public class PerCellDamageWarhead : DamageWarhead
|
|
||||||
{
|
|
||||||
[Desc("Size of the area. Damage will be applied to this area.")]
|
|
||||||
public readonly int[] Size = { 0, 0 };
|
|
||||||
|
|
||||||
public override void DoImpact(WPos pos, Actor firedBy, IEnumerable<int> damageModifiers)
|
|
||||||
{
|
|
||||||
var world = firedBy.World;
|
|
||||||
var targetTile = world.Map.CellContaining(pos);
|
|
||||||
var minRange = (Size.Length > 1 && Size[1] > 0) ? Size[1] : 0;
|
|
||||||
var affectedTiles = world.Map.FindTilesInAnnulus(targetTile, minRange, Size[0]);
|
|
||||||
|
|
||||||
foreach (var t in affectedTiles)
|
|
||||||
foreach (var victim in world.ActorMap.GetUnitsAt(t))
|
|
||||||
DoImpact(victim, firedBy, damageModifiers);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1057,69 +1057,6 @@ Sequences:
|
|||||||
VoxelSequences:
|
VoxelSequences:
|
||||||
|
|
||||||
Weapons:
|
Weapons:
|
||||||
CrateNuke:
|
|
||||||
Warhead@areanuke2: PerCellDamage
|
|
||||||
Damage: 250
|
|
||||||
Size: 4
|
|
||||||
Versus:
|
|
||||||
None: 90
|
|
||||||
Light: 60
|
|
||||||
Heavy: 25
|
|
||||||
Concrete: 50
|
|
||||||
Delay: 12
|
|
||||||
DeathType: 4
|
|
||||||
Warhead@areanuke2Smu: LeaveSmudge
|
|
||||||
SmudgeType: Scorch
|
|
||||||
Size: 4,3
|
|
||||||
Delay: 12
|
|
||||||
Warhead@areanuke2Res: DestroyResource
|
|
||||||
DestroyResources: true
|
|
||||||
Size: 4,3
|
|
||||||
Delay: 12
|
|
||||||
Warhead@areanuke2Eff: CreateEffect
|
|
||||||
ImpactSound: kaboom22
|
|
||||||
Delay: 12
|
|
||||||
Warhead@areanuke3: PerCellDamage
|
|
||||||
Damage: 250
|
|
||||||
Size: 3
|
|
||||||
Versus:
|
|
||||||
None: 90
|
|
||||||
Light: 60
|
|
||||||
Heavy: 25
|
|
||||||
Concrete: 50
|
|
||||||
Delay: 24
|
|
||||||
DeathType: 4
|
|
||||||
Warhead@areanuke3Smu: LeaveSmudge
|
|
||||||
SmudgeType: Scorch
|
|
||||||
Size: 3,2
|
|
||||||
Delay: 24
|
|
||||||
Warhead@areanuke3Res: DestroyResource
|
|
||||||
DestroyResources: true
|
|
||||||
Size: 3,2
|
|
||||||
Delay: 24
|
|
||||||
Warhead@areanuke3Eff: CreateEffect
|
|
||||||
ImpactSound: kaboom22
|
|
||||||
Delay: 24
|
|
||||||
Warhead@areanuke4: PerCellDamage
|
|
||||||
Damage: 250
|
|
||||||
Versus:
|
|
||||||
None: 90
|
|
||||||
Light: 60
|
|
||||||
Heavy: 25
|
|
||||||
Concrete: 50
|
|
||||||
Delay: 36
|
|
||||||
DeathType: 4
|
|
||||||
Warhead@areanuke4Smu: LeaveSmudge
|
|
||||||
SmudgeType: Scorch
|
|
||||||
Size: 2,1
|
|
||||||
Delay: 36
|
|
||||||
Warhead@areanuke4Res: DestroyResource
|
|
||||||
DestroyResources: true
|
|
||||||
Size: 2,1
|
|
||||||
Delay: 36
|
|
||||||
Warhead@areanuke4Eff: CreateEffect
|
|
||||||
ImpactSound: kaboom22
|
|
||||||
Delay: 36
|
|
||||||
|
|
||||||
Voices:
|
Voices:
|
||||||
|
|
||||||
|
|||||||
@@ -776,49 +776,36 @@ CrateExplosion:
|
|||||||
|
|
||||||
CrateNuke:
|
CrateNuke:
|
||||||
Warhead@1Dam_impact: SpreadDamage
|
Warhead@1Dam_impact: SpreadDamage
|
||||||
Spread: 256
|
Spread: 1c0
|
||||||
Damage: 100
|
Damage: 100
|
||||||
Falloff: 1000, 368, 135, 50, 18, 7, 0
|
Falloff: 1000, 368, 135, 50, 18, 7, 0
|
||||||
DeathType: 5
|
DeathType: 5
|
||||||
|
ValidTargets: Ground, Water, Air
|
||||||
Versus:
|
Versus:
|
||||||
None: 90
|
Concrete: 25
|
||||||
Light: 60
|
|
||||||
Heavy: 25
|
|
||||||
Concrete: 50
|
|
||||||
AffectsParent: true
|
AffectsParent: true
|
||||||
Warhead@2Res_impact: DestroyResource
|
Warhead@2Res_impact: DestroyResource
|
||||||
Warhead@3Eff_impact: CreateEffect
|
Warhead@3Eff_impact: CreateEffect
|
||||||
Explosion: nuke
|
Explosion: nuke
|
||||||
ImpactSound: kaboom1.aud
|
ImpactSound: kaboom1.aud
|
||||||
Warhead@4Dam_areanuke: PerCellDamage
|
Warhead@4Dam_areanuke: SpreadDamage
|
||||||
Size: 5
|
Spread: 1c0
|
||||||
Damage: 250
|
Damage: 60
|
||||||
|
Falloff: 1000, 600, 400, 250, 150, 100, 0
|
||||||
DeathType: 5
|
DeathType: 5
|
||||||
Delay: 4
|
Delay: 4
|
||||||
|
ValidTargets: Ground, Water, Air
|
||||||
Versus:
|
Versus:
|
||||||
None: 90
|
Concrete: 25
|
||||||
Light: 60
|
|
||||||
Heavy: 25
|
|
||||||
Concrete: 50
|
|
||||||
AffectsParent: true
|
AffectsParent: true
|
||||||
Warhead@5Dam_areanuke: SpreadDamage
|
Warhead@5Res_areanuke: DestroyResource
|
||||||
Damage: 250
|
|
||||||
DeathType: 5
|
|
||||||
Delay: 4
|
|
||||||
Versus:
|
|
||||||
None: 90
|
|
||||||
Light: 60
|
|
||||||
Heavy: 25
|
|
||||||
Concrete: 50
|
|
||||||
AffectsParent: true
|
|
||||||
Warhead@6Res_areanuke: DestroyResource
|
|
||||||
Size: 5,4
|
Size: 5,4
|
||||||
Delay: 4
|
Delay: 4
|
||||||
Warhead@7Smu_areanuke: LeaveSmudge
|
Warhead@6Smu_areanuke: LeaveSmudge
|
||||||
SmudgeType: Scorch
|
SmudgeType: Scorch
|
||||||
Size: 5,4
|
Size: 5,4
|
||||||
Delay: 4
|
Delay: 4
|
||||||
Warhead@8Eff_areanuke: CreateEffect
|
Warhead@7Eff_areanuke: CreateEffect
|
||||||
ImpactSound: kaboom22.aud
|
ImpactSound: kaboom22.aud
|
||||||
Delay: 4
|
Delay: 4
|
||||||
|
|
||||||
|
|||||||
@@ -1026,9 +1026,10 @@ IonCannon:
|
|||||||
Warhead@2Eff_impact: CreateEffect
|
Warhead@2Eff_impact: CreateEffect
|
||||||
Explosion: ionring
|
Explosion: ionring
|
||||||
ImpactSound: ion1.aud
|
ImpactSound: ion1.aud
|
||||||
Warhead@3Dam_area: PerCellDamage
|
Warhead@3Dam_area: SpreadDamage
|
||||||
Size: 2
|
Spread: 1c0
|
||||||
Damage: 250
|
Damage: 250
|
||||||
|
Falloff: 100, 50, 25, 0
|
||||||
DeathType: 5
|
DeathType: 5
|
||||||
Delay: 3
|
Delay: 3
|
||||||
ValidTargets: Ground, Air
|
ValidTargets: Ground, Air
|
||||||
|
|||||||
Reference in New Issue
Block a user