move SupportPowerInfo.MissileWeapon to NukePowerInfo where it belongs
This commit is contained in:
@@ -33,7 +33,6 @@ namespace OpenRA.Traits
|
|||||||
public readonly string[] Prerequisites = { };
|
public readonly string[] Prerequisites = { };
|
||||||
public readonly int TechLevel = -1;
|
public readonly int TechLevel = -1;
|
||||||
public readonly bool GivenAuto = true;
|
public readonly bool GivenAuto = true;
|
||||||
public readonly string MissileWeapon = "";
|
|
||||||
|
|
||||||
public readonly string BeginChargeSound = null;
|
public readonly string BeginChargeSound = null;
|
||||||
public readonly string EndChargeSound = null;
|
public readonly string EndChargeSound = null;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ namespace OpenRA.Mods.RA.SupportPowers
|
|||||||
{
|
{
|
||||||
class NukePowerInfo : SupportPowerInfo
|
class NukePowerInfo : SupportPowerInfo
|
||||||
{
|
{
|
||||||
|
public readonly string MissileWeapon = "";
|
||||||
public override object Create(Actor self) { return new NukePower(self, this); }
|
public override object Create(Actor self) { return new NukePower(self, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -57,7 +58,7 @@ namespace OpenRA.Mods.RA.SupportPowers
|
|||||||
Sound.Play(Info.LaunchSound);
|
Sound.Play(Info.LaunchSound);
|
||||||
|
|
||||||
//FIRE ZE MISSILES
|
//FIRE ZE MISSILES
|
||||||
w.Add(new NukeLaunch(silo, Info.MissileWeapon, order.TargetLocation));
|
w.Add(new NukeLaunch(silo, (Info as NukePowerInfo).MissileWeapon, order.TargetLocation));
|
||||||
});
|
});
|
||||||
|
|
||||||
Game.controller.CancelInputMode();
|
Game.controller.CancelInputMode();
|
||||||
|
|||||||
Reference in New Issue
Block a user