tweak: weather command tooltip (#33130)

clear weather tip
This commit is contained in:
IProduceWidgets
2024-11-09 23:26:51 -05:00
committed by GitHub
parent d939e991bb
commit 33b780fd1f
2 changed files with 4 additions and 1 deletions

View 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"));
}
}

View 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!