Lint check the harvest cursor.

This commit is contained in:
Matthias Mailänder
2021-04-17 14:05:28 +02:00
committed by Paul Chote
parent 771932354b
commit b491e892ff

View File

@@ -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;