Skip to content

Commit

Permalink
Fix some stuff noted by lint checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Dec 4, 2022
1 parent 54b4f6c commit db7dfb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OpenRA.Mods.SS/Traits/Teleporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public class TeleporterInfo : TraitInfo, IPositionableInfo, Requires<RenderSprit
[Desc("Notification to play when an actor is teleported.")]
public readonly string Notification = null;

[Desc("Text notification to display when an actor is teleported.")]
public readonly string TextNotification = null;

[Desc("The maxiumum distance unit can be teleported to.")]
public readonly int MaxDistance = 50;

Expand Down Expand Up @@ -126,6 +129,8 @@ void OnCrushInner(Actor crusher)
Game.Sound.PlayNotification(self.World.Map.Rules, crusher.Owner, "Speech",
info.Notification, crusher.Owner.Faction.InternalName);

TextNotificationsManager.AddTransientLine(info.TextNotification, crusher.Owner);

if (info.Image != null && info.Sequence != null)
crusher.World.AddFrameEndTask(w => w.Add(new SpriteEffect(crusher, w, info.Image, info.Sequence, info.Palette)));

Expand Down
1 change: 1 addition & 0 deletions mods/ss/rules/structures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ TMPL:
LaunchTextNotification: Nuclear weapon launched.
IncomingTextNotification: Nuclear warhead approaching.
MissileWeapon: atomic
MissileImage: atomic
MissileDelay: 11
SpawnOffset: 3c0,0,-1c512
DisplayBeacon: True
Expand Down

0 comments on commit db7dfb9

Please sign in to comment.