@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user