Skip to content

Commit

Permalink
Testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
PunkPun committed Mar 18, 2023
1 parent ef1cf96 commit 4ebf0ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/Harvester.cs
Expand Up @@ -62,7 +62,7 @@ public class HarvesterInfo : ConditionalTraitInfo, Requires<MobileInfo>
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;
Expand Down
16 changes: 6 additions & 10 deletions mods/ra/rules/structures.yaml
Expand Up @@ -1249,20 +1249,19 @@ 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.
Valued:
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
Expand All @@ -1280,7 +1279,7 @@ PROC:
Range: 4c0
Refinery:
DockAngle: 256
DockOffset: 1,2
DockOffset: 0,1
StoresResources:
Capacity: 2000
CustomSellValue:
Expand All @@ -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
Expand All @@ -1318,7 +1315,6 @@ PROC:
Type: Rectangle
TopLeft: -1536, 598
BottomRight: -512, 1280
-ActorPreviewPlaceBuildingPreview:
SequencePlaceBuildingPreview:
Sequence: idle
SequenceAlpha: 0.65
Expand Down

0 comments on commit 4ebf0ee

Please sign in to comment.