diff --git a/OpenRA.Utility/UpgradeRules.cs b/OpenRA.Utility/UpgradeRules.cs index f1da09e260..064dd759f4 100644 --- a/OpenRA.Utility/UpgradeRules.cs +++ b/OpenRA.Utility/UpgradeRules.cs @@ -316,6 +316,18 @@ namespace OpenRA.Utility } } + // GiveUnitCrateAction and GiveMcvCrateAction were updated to allow multiple units + if (engineVersion < 20140723) + { + if (depth == 2 && parentKey.Contains("GiveMcvCrateAction")) + if (node.Key == "Unit") + node.Key = "Units"; + + if (depth == 2 && parentKey.Contains("GiveUnitCrateAction")) + if (node.Key == "Unit") + node.Key = "Units"; + } + UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1); } } diff --git a/mods/cnc/rules/misc.yaml b/mods/cnc/rules/misc.yaml index a724f2c0e1..c2cb588de3 100644 --- a/mods/cnc/rules/misc.yaml +++ b/mods/cnc/rules/misc.yaml @@ -17,10 +17,15 @@ CRATE: CloakCrateAction: SelectionShares: 5 Effect: cloak + DuplicateUnitCrateAction: + SelectionShares: 10 + MaxAmount: 5 + MinAmount: 1 + MaxDuplicatesWorth: 1250 GiveMcvCrateAction: SelectionShares: 0 NoBaseSelectionShares: 120 - Unit: mcv + Units: mcv RenderSprites: Palette: effect WithCrateBody: