From 4ebf0ee69e69494cfbf9f1ad0373cc1f2ac06e1d Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Thu, 19 Jan 2023 19:47:44 +0200 Subject: [PATCH] Testcase --- OpenRA.Mods.Common/Traits/Harvester.cs | 2 +- mods/ra/rules/structures.yaml | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Harvester.cs b/OpenRA.Mods.Common/Traits/Harvester.cs index 61aeddb8f8dd..7c1079035c00 100644 --- a/OpenRA.Mods.Common/Traits/Harvester.cs +++ b/OpenRA.Mods.Common/Traits/Harvester.cs @@ -62,7 +62,7 @@ public class HarvesterInfo : ConditionalTraitInfo, Requires public readonly int WaitDuration = 25; [Desc("Find a new refinery to unload at if more than this many harvesters are already waiting.")] - public readonly int MaxUnloadQueue = 3; + public readonly int MaxUnloadQueue = 6; [Desc("The pathfinding cost penalty applied for each harvester waiting to unload at a refinery.")] public readonly int UnloadQueueCostModifier = 12; diff --git a/mods/ra/rules/structures.yaml b/mods/ra/rules/structures.yaml index 55be9627830f..557100612a20 100644 --- a/mods/ra/rules/structures.yaml +++ b/mods/ra/rules/structures.yaml @@ -1249,9 +1249,9 @@ FACT: Condition: invulnerability PROC: - Inherits: ^Building + Inherits: ^Vehicle Buildable: - Queue: Building + Queue: Vehicle BuildPaletteOrder: 60 Prerequisites: anypower, ~techlevel.infonly Description: Refines Ore and Gems\ninto credits. @@ -1259,10 +1259,9 @@ PROC: Cost: 1400 Tooltip: Name: Ore Refinery - Building: - Footprint: _X_ xxx X== === - Dimensions: 3,4 - LocalCenterOffset: 0,-512,0 + Mobile: + Speed: 100 + -TurnSpeed: Selectable: Bounds: 3072, 2133, 0, 170 DecorationBounds: 3072, 2986, 0, -85 @@ -1280,7 +1279,7 @@ PROC: Range: 4c0 Refinery: DockAngle: 256 - DockOffset: 1,2 + DockOffset: 0,1 StoresResources: Capacity: 2000 CustomSellValue: @@ -1294,9 +1293,7 @@ PROC: Types: SpyInfiltrate, ThiefInfiltrate InfiltratedNotification: CreditsStolen InfiltratedTextNotification: Credits stolen. - WithBuildingBib: WithIdleOverlay@TOP: - RequiresCondition: !build-incomplete Sequence: idle-top Power: Amount: -30 @@ -1318,7 +1315,6 @@ PROC: Type: Rectangle TopLeft: -1536, 598 BottomRight: -512, 1280 - -ActorPreviewPlaceBuildingPreview: SequencePlaceBuildingPreview: Sequence: idle SequenceAlpha: 0.65