From b491e892ff3b74af0c090558be1ef14f047e46c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 17 Apr 2021 14:05:28 +0200 Subject: [PATCH] Lint check the harvest cursor. --- OpenRA.Mods.Common/Traits/Harvester.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Harvester.cs b/OpenRA.Mods.Common/Traits/Harvester.cs index 8a57192c18..af80168dc4 100644 --- a/OpenRA.Mods.Common/Traits/Harvester.cs +++ b/OpenRA.Mods.Common/Traits/Harvester.cs @@ -99,6 +99,10 @@ namespace OpenRA.Mods.Common.Traits [Desc("Cursor to display when unable to unload at target actor.")] public readonly string EnterBlockedCursor = "enter-blocked"; + [CursorReference] + [Desc("Cursor to display when ordering to harvest resources.")] + public readonly string HarvestCursor = "harvest"; + public override object Create(ActorInitializer init) { return new Harvester(init.Self, this); } } @@ -395,7 +399,7 @@ namespace OpenRA.Mods.Common.Traits if (res == null) return false; - cursor = "harvest"; + cursor = info.HarvestCursor; IsQueued = modifiers.HasModifier(TargetModifiers.ForceQueue); return true;