]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
tweak: weather command tooltip (#33130)
authorIProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
Sun, 10 Nov 2024 04:26:51 +0000 (23:26 -0500)
committerGitHub <noreply@github.com>
Sun, 10 Nov 2024 04:26:51 +0000 (22:26 -0600)
clear weather tip

Content.Server/Weather/WeatherSystem.cs
Resources/Locale/en-US/weather/weather.ftl

index dbee62a72fc2d3896633105d75fd63005841cfcc..ec377809133d726ffe89cc8d8d41452174e5e711 100644 (file)
@@ -4,6 +4,7 @@ using Content.Shared.Weather;
 using Robust.Shared.Console;
 using Robust.Shared.GameStates;
 using Robust.Shared.Map;
+using System.Linq;
 
 namespace Content.Server.Weather;
 
@@ -85,6 +86,7 @@ public sealed class WeatherSystem : SharedWeatherSystem
             return CompletionResult.FromHintOptions(CompletionHelper.MapIds(EntityManager), "Map Id");
 
         var a = CompletionHelper.PrototypeIDs<WeatherPrototype>(true, ProtoMan);
-        return CompletionResult.FromHintOptions(a, Loc.GetString("cmd-weather-hint"));
+        var b = a.Concat(new[] { new CompletionOption("null", Loc.GetString("cmd-weather-null")) });
+        return CompletionResult.FromHintOptions(b, Loc.GetString("cmd-weather-hint"));
     }
 }
index 67e6eec35f2ce2116868fbfea0974b54efcc9a9c..0c67b6f66bf4de14e86576da8f94a292fcf19bd5 100644 (file)
@@ -1,6 +1,7 @@
 cmd-weather-desc = Sets the weather for the current map.
 cmd-weather-help = weather <mapId> <prototype / null>
 cmd-weather-hint = Weather prototype
+cmd-weather-null = Clears the weather
 
 cmd-weather-error-no-arguments = Not enough arguments!
 cmd-weather-error-unknown-proto = Unknown Weather prototype!