partial fix for tsla
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -254,6 +254,7 @@ TSLA:
|
|||||||
AttackTesla:
|
AttackTesla:
|
||||||
PrimaryWeapon: TeslaZap
|
PrimaryWeapon: TeslaZap
|
||||||
FireDelay: 8
|
FireDelay: 8
|
||||||
|
ReloadTime: 120
|
||||||
AutoTarget:
|
AutoTarget:
|
||||||
IronCurtainable:
|
IronCurtainable:
|
||||||
-RenderBuilding:
|
-RenderBuilding:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user