partial fix for tsla

This commit is contained in:
Bob
2010-10-24 02:49:39 +13:00
committed by Chris Forbes
parent 9b8ec714d2
commit 2f0b7566e5
3 changed files with 4 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ namespace OpenRA.Mods.RA
class AttackTeslaInfo : AttackOmniInfo class AttackTeslaInfo : AttackOmniInfo
{ {
public readonly int MaxCharges = 3; public readonly int MaxCharges = 3;
public readonly int ReloadTime = 120;
public override object Create(ActorInitializer init) { return new AttackTesla(init.self); } public override object Create(ActorInitializer init) { return new AttackTesla(init.self); }
} }
@@ -62,7 +63,7 @@ namespace OpenRA.Mods.RA
foreach (var w in Weapons) foreach (var w in Weapons)
w.FireDelay = 8; w.FireDelay = 8;
timeToRecharge = Weapons[0].Info.ROF; timeToRecharge = self.Info.Traits.Get<AttackTeslaInfo>().ReloadTime;
--charges; --charges;
if (target.Actor != previousTarget) if (target.Actor != previousTarget)

View File

@@ -254,6 +254,7 @@ TSLA:
AttackTesla: AttackTesla:
PrimaryWeapon: TeslaZap PrimaryWeapon: TeslaZap
FireDelay: 8 FireDelay: 8
ReloadTime: 120
AutoTarget: AutoTarget:
IronCurtainable: IronCurtainable:
-RenderBuilding: -RenderBuilding:

View File

@@ -593,7 +593,7 @@ CrateNuke:
TeslaZap: TeslaZap:
ROF: 120 ROF: 3
Charges: true Charges: true
Range: 8.5 Range: 8.5
Report: TESLA1 Report: TESLA1