Remove bitrotted WeaponInfo.Charges
There is no logic attached anymore (or never was).
This commit is contained in:
@@ -46,8 +46,6 @@ namespace OpenRA.GameRules
|
|||||||
[Desc("Number of shots in a single ammo magazine.")]
|
[Desc("Number of shots in a single ammo magazine.")]
|
||||||
public readonly int Burst = 1;
|
public readonly int Burst = 1;
|
||||||
|
|
||||||
public readonly bool Charges = false;
|
|
||||||
|
|
||||||
[Desc("What types of targets are affected.")]
|
[Desc("What types of targets are affected.")]
|
||||||
public readonly HashSet<string> ValidTargets = new HashSet<string> { "Ground", "Water" };
|
public readonly HashSet<string> ValidTargets = new HashSet<string> { "Ground", "Water" };
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
UpgradeWeaponRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,7 +120,6 @@ Napalm:
|
|||||||
Laser:
|
Laser:
|
||||||
ReloadDelay: 1
|
ReloadDelay: 1
|
||||||
Range: 7c512
|
Range: 7c512
|
||||||
Charges: true
|
|
||||||
Report: obelray1.aud
|
Report: obelray1.aud
|
||||||
Projectile: LaserZap
|
Projectile: LaserZap
|
||||||
Width: 85
|
Width: 85
|
||||||
|
|||||||
@@ -139,7 +139,6 @@ DepthCharge:
|
|||||||
|
|
||||||
TeslaZap:
|
TeslaZap:
|
||||||
ReloadDelay: 3
|
ReloadDelay: 3
|
||||||
Charges: true
|
|
||||||
Range: 8c512
|
Range: 8c512
|
||||||
Report: tesla1.aud
|
Report: tesla1.aud
|
||||||
Projectile: TeslaZap
|
Projectile: TeslaZap
|
||||||
@@ -155,7 +154,6 @@ PortaTesla:
|
|||||||
ReloadDelay: 70
|
ReloadDelay: 70
|
||||||
Range: 6c0
|
Range: 6c0
|
||||||
Report: tesla1.aud
|
Report: tesla1.aud
|
||||||
Charges: yes
|
|
||||||
Projectile: TeslaZap
|
Projectile: TeslaZap
|
||||||
Warhead@1Dam: SpreadDamage
|
Warhead@1Dam: SpreadDamage
|
||||||
Spread: 42
|
Spread: 42
|
||||||
@@ -168,7 +166,6 @@ TTankZap:
|
|||||||
ReloadDelay: 120
|
ReloadDelay: 120
|
||||||
Range: 7c0
|
Range: 7c0
|
||||||
Report: tesla1.aud
|
Report: tesla1.aud
|
||||||
Charges: yes
|
|
||||||
Projectile: TeslaZap
|
Projectile: TeslaZap
|
||||||
Warhead@1Dam: SpreadDamage
|
Warhead@1Dam: SpreadDamage
|
||||||
Spread: 42
|
Spread: 42
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ MechRailgun:
|
|||||||
SonicZap:
|
SonicZap:
|
||||||
ReloadDelay: 180
|
ReloadDelay: 180
|
||||||
Range: 6c0
|
Range: 6c0
|
||||||
Charges: yes
|
|
||||||
Report: sonic4.aud
|
Report: sonic4.aud
|
||||||
Projectile: AreaBeam
|
Projectile: AreaBeam
|
||||||
Speed: 0c128
|
Speed: 0c128
|
||||||
@@ -173,7 +172,6 @@ Proton:
|
|||||||
ObeliskLaserFire:
|
ObeliskLaserFire:
|
||||||
ReloadDelay: 1
|
ReloadDelay: 1
|
||||||
Range: 10c512
|
Range: 10c512
|
||||||
Charges: true
|
|
||||||
Report: obelray1.aud
|
Report: obelray1.aud
|
||||||
Projectile: LaserZap
|
Projectile: LaserZap
|
||||||
Width: 170
|
Width: 170
|
||||||
|
|||||||
Reference in New Issue
Block a user