Remove bitrotted WeaponInfo.Charges

There is no logic attached anymore (or never was).
This commit is contained in:
reaperrr
2016-01-24 12:58:39 +01:00
parent 6b008a1b71
commit 56ab3f43da
5 changed files with 5 additions and 8 deletions

View File

@@ -46,8 +46,6 @@ namespace OpenRA.GameRules
[Desc("Number of shots in a single ammo magazine.")]
public readonly int Burst = 1;
public readonly bool Charges = false;
[Desc("What types of targets are affected.")]
public readonly HashSet<string> ValidTargets = new HashSet<string> { "Ground", "Water" };

View File

@@ -3427,6 +3427,11 @@ namespace OpenRA.Mods.Common.UtilityCommands
}
}
if (engineVersion < 20160124)
{
node.Value.Nodes.RemoveAll(x => x.Key == "Charges");
}
UpgradeWeaponRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
}
}

View File

@@ -120,7 +120,6 @@ Napalm:
Laser:
ReloadDelay: 1
Range: 7c512
Charges: true
Report: obelray1.aud
Projectile: LaserZap
Width: 85

View File

@@ -139,7 +139,6 @@ DepthCharge:
TeslaZap:
ReloadDelay: 3
Charges: true
Range: 8c512
Report: tesla1.aud
Projectile: TeslaZap
@@ -155,7 +154,6 @@ PortaTesla:
ReloadDelay: 70
Range: 6c0
Report: tesla1.aud
Charges: yes
Projectile: TeslaZap
Warhead@1Dam: SpreadDamage
Spread: 42
@@ -168,7 +166,6 @@ TTankZap:
ReloadDelay: 120
Range: 7c0
Report: tesla1.aud
Charges: yes
Projectile: TeslaZap
Warhead@1Dam: SpreadDamage
Spread: 42

View File

@@ -67,7 +67,6 @@ MechRailgun:
SonicZap:
ReloadDelay: 180
Range: 6c0
Charges: yes
Report: sonic4.aud
Projectile: AreaBeam
Speed: 0c128
@@ -173,7 +172,6 @@ Proton:
ObeliskLaserFire:
ReloadDelay: 1
Range: 10c512
Charges: true
Report: obelray1.aud
Projectile: LaserZap
Width: 170