Spelling fixes
This commit is contained in:
committed by
Pavel Penev
parent
52fd564eac
commit
53e9f44972
@@ -43,7 +43,7 @@ namespace OpenRA
|
|||||||
readonly List<MapDirectoryTracker> mapDirectoryTrackers = new List<MapDirectoryTracker>();
|
readonly List<MapDirectoryTracker> mapDirectoryTrackers = new List<MapDirectoryTracker>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The most recenly modified or loaded map at runtime
|
/// The most recently modified or loaded map at runtime
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string LastModifiedMap { get; private set; } = null;
|
public string LastModifiedMap { get; private set; } = null;
|
||||||
readonly Dictionary<string, string> mapUpdates = new Dictionary<string, string>();
|
readonly Dictionary<string, string> mapUpdates = new Dictionary<string, string>();
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ namespace OpenRA.Scripting
|
|||||||
{
|
{
|
||||||
var pi = (PropertyInfo)Member;
|
var pi = (PropertyInfo)Member;
|
||||||
if (!value.TryGetClrValue(pi.PropertyType, out var clrValue))
|
if (!value.TryGetClrValue(pi.PropertyType, out var clrValue))
|
||||||
throw new LuaException($"Unable to convert '{value.WrappedClrType().Name}' to Clr type '{pi.PropertyType}'");
|
throw new LuaException($"Unable to convert '{value.WrappedClrType().Name}' to CLR type '{pi.PropertyType}'");
|
||||||
|
|
||||||
pi.SetValue(Target, clrValue, null);
|
pi.SetValue(Target, clrValue, null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ namespace OpenRA
|
|||||||
[Desc("Delay in milliseconds before newly joined players can send chat messages.")]
|
[Desc("Delay in milliseconds before newly joined players can send chat messages.")]
|
||||||
public int FloodLimitJoinCooldown = 5000;
|
public int FloodLimitJoinCooldown = 5000;
|
||||||
|
|
||||||
[Desc("Amount of miliseconds player chat messages are tracked for.")]
|
[Desc("Amount of milliseconds player chat messages are tracked for.")]
|
||||||
public int FloodLimitInterval = 5000;
|
public int FloodLimitInterval = 5000;
|
||||||
|
|
||||||
[Desc("Amount of chat messages per FloodLimitInterval a players can send before flood is detected.")]
|
[Desc("Amount of chat messages per FloodLimitInterval a players can send before flood is detected.")]
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace OpenRA
|
|||||||
readonly int x, y, z, w;
|
readonly int x, y, z, w;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Construct a rotation from euler angles.
|
/// Construct a rotation from Euler angles.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public WRot(WAngle roll, WAngle pitch, WAngle yaw)
|
public WRot(WAngle roll, WAngle pitch, WAngle yaw)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
Self.QueueActivity(new CaptureActor(Self, Target.FromActor(target), null));
|
Self.QueueActivity(new CaptureActor(Self, Target.FromActor(target), null));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Desc("Checks if the target actor can be catured.")]
|
[Desc("Checks if the target actor can be captured.")]
|
||||||
public bool CanCapture(Actor target)
|
public bool CanCapture(Actor target)
|
||||||
{
|
{
|
||||||
var targetManager = target.TraitOrDefault<CaptureManager>();
|
var targetManager = target.TraitOrDefault<CaptureManager>();
|
||||||
|
|||||||
@@ -804,7 +804,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
var altitude = self.World.Map.DistanceAboveTerrain(CenterPosition);
|
var altitude = self.World.Map.DistanceAboveTerrain(CenterPosition);
|
||||||
|
|
||||||
// LandingCells define OccupiedCells, so we need to keep current position with LandindCells in sync.
|
// LandingCells define OccupiedCells, so we need to keep current position with LandindCells in sync.
|
||||||
// Though we don't want to update LandingCells when the unit is airborn, as when non-VTOL units reserve
|
// Though we don't want to update LandingCells when the unit is airborne, as when non-VTOL units reserve
|
||||||
// their landing position it is expected for their landing cell to not match their current position.
|
// their landing position it is expected for their landing cell to not match their current position.
|
||||||
if (HasInfluence() && altitude.Length <= Info.MinAirborneAltitude)
|
if (HasInfluence() && altitude.Length <= Info.MinAirborneAltitude)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public readonly int BaleLoadDelay = 4;
|
public readonly int BaleLoadDelay = 4;
|
||||||
|
|
||||||
[Desc("How fast it can dump it's carryage.")]
|
[Desc("How fast it can dump its bales.")]
|
||||||
public readonly int BaleUnloadDelay = 4;
|
public readonly int BaleUnloadDelay = 4;
|
||||||
|
|
||||||
[Desc("How many bales can it dump at once.")]
|
[Desc("How many bales can it dump at once.")]
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
bridges = new CellLayer<Bridge>(w.Map);
|
bridges = new CellLayer<Bridge>(w.Map);
|
||||||
|
|
||||||
// Build a list of templates that should be overlayed with bridges
|
// Build a list of templates that should be overlaid with bridges
|
||||||
foreach (var bridge in info.Bridges)
|
foreach (var bridge in info.Bridges)
|
||||||
{
|
{
|
||||||
var bi = w.Map.Rules.Actors[bridge].TraitInfo<BridgeInfo>();
|
var bi = w.Map.Rules.Actors[bridge].TraitInfo<BridgeInfo>();
|
||||||
|
|||||||
@@ -279,13 +279,13 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
{
|
{
|
||||||
var cv = cellVisibility(puv);
|
var cv = cellVisibility(puv);
|
||||||
|
|
||||||
// If a cell is covered by shroud, then all neigbhors are covered by shroud and fog.
|
// If a cell is covered by shroud, then all neighbors are covered by shroud and fog.
|
||||||
if (!cv.HasFlag(Shroud.CellVisibility.Explored))
|
if (!cv.HasFlag(Shroud.CellVisibility.Explored))
|
||||||
return notVisibleEdgesPair;
|
return notVisibleEdgesPair;
|
||||||
|
|
||||||
var ncv = GetNeighborsVisbility(puv);
|
var ncv = GetNeighborsVisbility(puv);
|
||||||
|
|
||||||
// If a cell is covered by fog, then all neigbhors are as well.
|
// If a cell is covered by fog, then all neighbors are as well.
|
||||||
var edgesFog = cv.HasFlag(Shroud.CellVisibility.Visible) ? GetEdges(ncv, Shroud.CellVisibility.Visible) : notVisibleEdgesPair.Item2;
|
var edgesFog = cv.HasFlag(Shroud.CellVisibility.Visible) ? GetEdges(ncv, Shroud.CellVisibility.Visible) : notVisibleEdgesPair.Item2;
|
||||||
|
|
||||||
var edgesShroud = GetEdges(ncv, Shroud.CellVisibility.Explored);
|
var edgesShroud = GetEdges(ncv, Shroud.CellVisibility.Explored);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
|||||||
{
|
{
|
||||||
public override string Name => "Rename contrail color properties";
|
public override string Name => "Rename contrail color properties";
|
||||||
|
|
||||||
public override string Description => "Rename contrail color properties `Color` to `StartColor` and `UsePlayerColor` to `StartColorUsePlayerColor` in traits and weapons to acount for added `EndColor` functionality";
|
public override string Description => "Rename contrail color properties `Color` to `StartColor` and `UsePlayerColor` to `StartColorUsePlayerColor` in traits and weapons to account for added `EndColor` functionality";
|
||||||
|
|
||||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
const string LoadingNews = "label-loading-news";
|
const string LoadingNews = "label-loading-news";
|
||||||
|
|
||||||
[TranslationReference("message")]
|
[TranslationReference("message")]
|
||||||
const string NewsRetrivalFailed = "label-news-retrival-failed";
|
const string NewsRetrivalFailed = "label-news-retrieval-failed";
|
||||||
|
|
||||||
[TranslationReference("message")]
|
[TranslationReference("message")]
|
||||||
const string NewsParsingFailed = "label-news-parsing-failed";
|
const string NewsParsingFailed = "label-news-parsing-failed";
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ dialog-overwrite-save =
|
|||||||
|
|
||||||
## MainMenuLogic
|
## MainMenuLogic
|
||||||
label-loading-news = Loading news
|
label-loading-news = Loading news
|
||||||
label-news-retrival-failed = Failed to retrieve news: { $message }
|
label-news-retrieval-failed = Failed to retrieve news: { $message }
|
||||||
label-news-parsing-failed = Failed to parse news: { $message }
|
label-news-parsing-failed = Failed to parse news: { $message }
|
||||||
|
|
||||||
## MapChooserLogic
|
## MapChooserLogic
|
||||||
|
|||||||
Reference in New Issue
Block a user