Tweak special powers
This commit is contained in:
@@ -43,7 +43,6 @@ namespace OpenRA.Traits
|
|||||||
public readonly string UnitReadyAudio = "unitrdy1.aud";
|
public readonly string UnitReadyAudio = "unitrdy1.aud";
|
||||||
public readonly string OnHoldAudio = "onhold1.aud";
|
public readonly string OnHoldAudio = "onhold1.aud";
|
||||||
public readonly string CancelledAudio = "cancld1.aud";
|
public readonly string CancelledAudio = "cancld1.aud";
|
||||||
public readonly string ClickAudio = "ramenu1.aud";
|
|
||||||
public readonly string NewOptions = "newopt1.aud";
|
public readonly string NewOptions = "newopt1.aud";
|
||||||
|
|
||||||
// For manual powerup/down in ra-ng
|
// For manual powerup/down in ra-ng
|
||||||
@@ -57,6 +56,9 @@ namespace OpenRA.Traits
|
|||||||
public readonly string NavalUnitLost = "navylst1.aud";
|
public readonly string NavalUnitLost = "navylst1.aud";
|
||||||
public readonly string PrimaryBuildingSelected = "pribldg1.aud";
|
public readonly string PrimaryBuildingSelected = "pribldg1.aud";
|
||||||
public readonly string CreditsStolen = "credit1.aud";
|
public readonly string CreditsStolen = "credit1.aud";
|
||||||
|
|
||||||
|
// Special powers
|
||||||
|
public readonly string AbilityInsufficientPower = "nopowr1.aud";
|
||||||
}
|
}
|
||||||
|
|
||||||
public class EvaAlerts {}
|
public class EvaAlerts {}
|
||||||
|
|||||||
@@ -136,14 +136,12 @@ namespace OpenRA.Traits
|
|||||||
public void Activate()
|
public void Activate()
|
||||||
{
|
{
|
||||||
if (!IsAvailable || !IsReady)
|
if (!IsAvailable || !IsReady)
|
||||||
{
|
|
||||||
Sound.Play("briefing.aud");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
if (Info.RequiresPower && !IsPowered())
|
if (Info.RequiresPower && !IsPowered())
|
||||||
{
|
{
|
||||||
Sound.Play("nopowr1.aud");
|
var eva = Owner.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
|
||||||
|
Sound.Play(eva.AbilityInsufficientPower);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Player:
|
|||||||
TechTreeCache:
|
TechTreeCache:
|
||||||
NukePower:
|
NukePower:
|
||||||
Image: atomicnh
|
Image: atomicnh
|
||||||
ChargeTime: 13
|
ChargeTime: 5
|
||||||
Description: Atom Bomb
|
Description: Atom Bomb
|
||||||
LongDesc: Launches a nuclear missile at a target location.
|
LongDesc: Launches a nuclear missile at a target location.
|
||||||
Prerequisites: TMPL
|
Prerequisites: TMPL
|
||||||
@@ -27,8 +27,8 @@ Player:
|
|||||||
LaunchSound: ion1.aud
|
LaunchSound: ion1.aud
|
||||||
SelectTargetSound: select1.aud
|
SelectTargetSound: select1.aud
|
||||||
AirstrikePower:
|
AirstrikePower:
|
||||||
Image: a10icnh
|
Image: bombicnh
|
||||||
ChargeTime: 8
|
ChargeTime: 4
|
||||||
Description: Airstrike
|
Description: Airstrike
|
||||||
LongDesc: Delivers a load of napalm on your target.
|
LongDesc: Delivers a load of napalm on your target.
|
||||||
Prerequisites: hq
|
Prerequisites: hq
|
||||||
@@ -243,6 +243,7 @@ World:
|
|||||||
UnitLost: unitlost.aud
|
UnitLost: unitlost.aud
|
||||||
NavalUnitLost: unitlost.aud
|
NavalUnitLost: unitlost.aud
|
||||||
PrimaryBuildingSelected: pribldg1.aud
|
PrimaryBuildingSelected: pribldg1.aud
|
||||||
|
AbilityInsufficientPower: nopower1.aud
|
||||||
SpatialBins:
|
SpatialBins:
|
||||||
BinSize: 4
|
BinSize: 4
|
||||||
Shroud:
|
Shroud:
|
||||||
Reference in New Issue
Block a user