Refactor support powers to use ticks instead of seconds for all delays - code changes
Also renamed ChargeTime to ChargeInterval.
This commit is contained in:
@@ -45,7 +45,7 @@ namespace OpenRA.Mods.Cnc.Effects
|
||||
if (++frame == 19)
|
||||
{
|
||||
var palette = info.SatellitePaletteIsPlayerPalette ? info.SatellitePalette + launcher.Owner.InternalName : info.SatellitePalette;
|
||||
world.AddFrameEndTask(w => w.Add(new GpsSatellite(world, pos, info.SatelliteImage, info.SatelliteSequence, palette, info.RevealDelay * 25, launcher.Owner)));
|
||||
world.AddFrameEndTask(w => w.Add(new GpsSatellite(world, pos, info.SatelliteImage, info.SatelliteSequence, palette, info.RevealDelay, launcher.Owner)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
[Desc("Target actor selection radius in cells.")]
|
||||
public readonly int Range = 1;
|
||||
|
||||
[Desc("Seconds until returning after teleportation.")]
|
||||
public readonly int Duration = 30;
|
||||
[Desc("Ticks until returning after teleportation.")]
|
||||
public readonly int Duration = 750;
|
||||
|
||||
[PaletteReference] public readonly string TargetOverlayPalette = TileSet.TerrainPaletteInternalName;
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
var cpi = Info as ChronoshiftPowerInfo;
|
||||
|
||||
if (self.Owner.Shroud.IsExplored(targetCell) && cs.CanChronoshiftTo(target, targetCell))
|
||||
cs.Teleport(target, targetCell, cpi.Duration * 25, cpi.KillCargo, self);
|
||||
cs.Teleport(target, targetCell, cpi.Duration, cpi.KillCargo, self);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
[Desc("Requires `GpsWatcher` on the player actor.")]
|
||||
class GpsPowerInfo : SupportPowerInfo
|
||||
{
|
||||
[Desc("Delay in ticks between launching and revealing the map.")]
|
||||
public readonly int RevealDelay = 0;
|
||||
|
||||
public readonly string DoorImage = "atek";
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
[Desc("Actor to spawn when the attack starts")]
|
||||
public readonly string CameraActor = null;
|
||||
|
||||
[Desc("Amount of time to keep the camera alive")]
|
||||
[Desc("Number of ticks to keep the camera alive")]
|
||||
public readonly int CameraRemoveDelay = 25;
|
||||
|
||||
[Desc("Effect sequence sprite image")]
|
||||
|
||||
Reference in New Issue
Block a user