From 1c2eaa2654049823a56d3c7d414a10fb5c58d495 Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Thu, 16 Mar 2023 19:54:58 +0200 Subject: [PATCH] Use nameof for ContrailEndColor description --- OpenRA.Mods.Common/Projectiles/Bullet.cs | 2 +- OpenRA.Mods.Common/Projectiles/Missile.cs | 2 +- OpenRA.Mods.Common/Traits/Render/Contrail.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Projectiles/Bullet.cs b/OpenRA.Mods.Common/Projectiles/Bullet.cs index b774819dd0..004ca0d585 100644 --- a/OpenRA.Mods.Common/Projectiles/Bullet.cs +++ b/OpenRA.Mods.Common/Projectiles/Bullet.cs @@ -125,7 +125,7 @@ namespace OpenRA.Mods.Common.Projectiles [Desc("The alpha value [from 0 to 255] of color at the contrail the start.")] public readonly int ContrailStartColorAlpha = 255; - [Desc("RGB color at the contrail end. Set to start color if undefined")] + [Desc("RGB color at the contrail end. Will default to " + nameof(ContrailStartColor) + " if left undefined")] public readonly Color? ContrailEndColor; [Desc("Use player remap color instead of a custom color at the contrail end.")] diff --git a/OpenRA.Mods.Common/Projectiles/Missile.cs b/OpenRA.Mods.Common/Projectiles/Missile.cs index 9ca6050b40..3e9cdbd341 100644 --- a/OpenRA.Mods.Common/Projectiles/Missile.cs +++ b/OpenRA.Mods.Common/Projectiles/Missile.cs @@ -154,7 +154,7 @@ namespace OpenRA.Mods.Common.Projectiles [Desc("The alpha value [from 0 to 255] of color at the contrail the start.")] public readonly int ContrailStartColorAlpha = 255; - [Desc("RGB color at the contrail end. Set to start color if undefined")] + [Desc("RGB color at the contrail end. Will default to " + nameof(ContrailStartColor) + " if left undefined")] public readonly Color? ContrailEndColor; [Desc("Use player remap color instead of a custom color at the contrail end.")] diff --git a/OpenRA.Mods.Common/Traits/Render/Contrail.cs b/OpenRA.Mods.Common/Traits/Render/Contrail.cs index 73ecd8921c..9e4d6f9aec 100644 --- a/OpenRA.Mods.Common/Traits/Render/Contrail.cs +++ b/OpenRA.Mods.Common/Traits/Render/Contrail.cs @@ -48,7 +48,7 @@ namespace OpenRA.Mods.Common.Traits [Desc("The alpha value [from 0 to 255] of color at the contrail the start.")] public readonly int StartColorAlpha = 255; - [Desc("RGB color at the contrail end. Set to start color if undefined")] + [Desc("RGB color at the contrail end. Will default to " + nameof(StartColor) + " if left undefined")] public readonly Color? EndColor; [Desc("Use player remap color instead of a custom color at the contrail end.")]