partial fix for tsla
This commit is contained in:
@@ -17,6 +17,7 @@ namespace OpenRA.Mods.RA
|
||||
class AttackTeslaInfo : AttackOmniInfo
|
||||
{
|
||||
public readonly int MaxCharges = 3;
|
||||
public readonly int ReloadTime = 120;
|
||||
public override object Create(ActorInitializer init) { return new AttackTesla(init.self); }
|
||||
}
|
||||
|
||||
@@ -62,7 +63,7 @@ namespace OpenRA.Mods.RA
|
||||
foreach (var w in Weapons)
|
||||
w.FireDelay = 8;
|
||||
|
||||
timeToRecharge = Weapons[0].Info.ROF;
|
||||
timeToRecharge = self.Info.Traits.Get<AttackTeslaInfo>().ReloadTime;
|
||||
--charges;
|
||||
|
||||
if (target.Actor != previousTarget)
|
||||
|
||||
@@ -254,6 +254,7 @@ TSLA:
|
||||
AttackTesla:
|
||||
PrimaryWeapon: TeslaZap
|
||||
FireDelay: 8
|
||||
ReloadTime: 120
|
||||
AutoTarget:
|
||||
IronCurtainable:
|
||||
-RenderBuilding:
|
||||
|
||||
@@ -593,7 +593,7 @@ CrateNuke:
|
||||
|
||||
|
||||
TeslaZap:
|
||||
ROF: 120
|
||||
ROF: 3
|
||||
Charges: true
|
||||
Range: 8.5
|
||||
Report: TESLA1
|
||||
|
||||
Reference in New Issue
Block a user