From 471af5bf4079fa9b1344fdbea592bb354c2e8ff4 Mon Sep 17 00:00:00 2001 From: Andrew Cooper Date: Thu, 15 Apr 2021 22:02:36 +1000 Subject: [PATCH] Fix shield set text --- 84 Super Star Trek/csharp/Resources/ShieldsSet.txt | 2 ++ 84 Super Star Trek/csharp/Resources/Strings.cs | 2 ++ 84 Super Star Trek/csharp/Systems/ShieldControl.cs | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 84 Super Star Trek/csharp/Resources/ShieldsSet.txt diff --git a/84 Super Star Trek/csharp/Resources/ShieldsSet.txt b/84 Super Star Trek/csharp/Resources/ShieldsSet.txt new file mode 100644 index 00000000..e3d7efda --- /dev/null +++ b/84 Super Star Trek/csharp/Resources/ShieldsSet.txt @@ -0,0 +1,2 @@ +Deflector control room report: + 'Shields now at {0} units per your command.' diff --git a/84 Super Star Trek/csharp/Resources/Strings.cs b/84 Super Star Trek/csharp/Resources/Strings.cs index 6fd472c1..b6cd5486 100644 --- a/84 Super Star Trek/csharp/Resources/Strings.cs +++ b/84 Super Star Trek/csharp/Resources/Strings.cs @@ -46,6 +46,8 @@ namespace SuperStarTrek.Resources internal static string ShieldsDropped => GetResource(); + internal static string ShieldsSet => GetResource(); + internal static string ShortRangeSensorsOut => GetResource(); internal static string StartText => GetResource(); diff --git a/84 Super Star Trek/csharp/Systems/ShieldControl.cs b/84 Super Star Trek/csharp/Systems/ShieldControl.cs index df42c125..de4f44d9 100644 --- a/84 Super Star Trek/csharp/Systems/ShieldControl.cs +++ b/84 Super Star Trek/csharp/Systems/ShieldControl.cs @@ -1,5 +1,6 @@ using SuperStarTrek.Commands; using SuperStarTrek.Objects; +using SuperStarTrek.Resources; using SuperStarTrek.Space; namespace SuperStarTrek.Systems @@ -30,6 +31,7 @@ namespace SuperStarTrek.Systems if (Validate(requested)) { ShieldEnergy = requested; + _output.Write(Strings.ShieldsSet, requested); } else {