Add an upgrade rule for ProvidesPrerequisite.Race rename
This commit is contained in:
@@ -1663,6 +1663,16 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (engineVersion < 20150731)
|
||||||
|
{
|
||||||
|
if (node.Key.StartsWith("ProvidesPrerequisite"))
|
||||||
|
{
|
||||||
|
var raceNode = node.Value.Nodes.FirstOrDefault(x => x.Key == "Race");
|
||||||
|
if (raceNode != null)
|
||||||
|
raceNode.Key = "Factions";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,16 +149,16 @@ barracks:
|
|||||||
ProductionBar:
|
ProductionBar:
|
||||||
ProvidesPrerequisite@atreides:
|
ProvidesPrerequisite@atreides:
|
||||||
Prerequisite: barracks.atreides
|
Prerequisite: barracks.atreides
|
||||||
Race: atreides
|
Factions: atreides
|
||||||
ProvidesPrerequisite@ordos:
|
ProvidesPrerequisite@ordos:
|
||||||
Prerequisite: barracks.ordos
|
Prerequisite: barracks.ordos
|
||||||
Race: ordos
|
Factions: ordos
|
||||||
ProvidesPrerequisite@harkonnen:
|
ProvidesPrerequisite@harkonnen:
|
||||||
Prerequisite: barracks.harkonnen
|
Prerequisite: barracks.harkonnen
|
||||||
Race: harkonnen
|
Factions: harkonnen
|
||||||
ProvidesPrerequisite@medics:
|
ProvidesPrerequisite@medics:
|
||||||
Prerequisite: barracks.medics
|
Prerequisite: barracks.medics
|
||||||
Race: atreides, ordos
|
Factions: atreides, ordos
|
||||||
Power:
|
Power:
|
||||||
Amount: -20
|
Amount: -20
|
||||||
RenderBuilding:
|
RenderBuilding:
|
||||||
@@ -297,16 +297,16 @@ light:
|
|||||||
ProductionBar:
|
ProductionBar:
|
||||||
ProvidesPrerequisite@atreides:
|
ProvidesPrerequisite@atreides:
|
||||||
Prerequisite: light.atreides
|
Prerequisite: light.atreides
|
||||||
Race: atreides
|
Factions: atreides
|
||||||
ProvidesPrerequisite@ordos:
|
ProvidesPrerequisite@ordos:
|
||||||
Prerequisite: light.ordos
|
Prerequisite: light.ordos
|
||||||
Race: ordos
|
Factions: ordos
|
||||||
ProvidesPrerequisite@harkonnen:
|
ProvidesPrerequisite@harkonnen:
|
||||||
Prerequisite: light.harkonnen
|
Prerequisite: light.harkonnen
|
||||||
Race: harkonnen
|
Factions: harkonnen
|
||||||
ProvidesPrerequisite@trikes:
|
ProvidesPrerequisite@trikes:
|
||||||
Prerequisite: light.regulartrikes
|
Prerequisite: light.regulartrikes
|
||||||
Race: atreides, harkonnen
|
Factions: atreides, harkonnen
|
||||||
ProvidesPrerequisite@buildingname:
|
ProvidesPrerequisite@buildingname:
|
||||||
WithProductionOverlay@WELDING:
|
WithProductionOverlay@WELDING:
|
||||||
Sequence: production-welding
|
Sequence: production-welding
|
||||||
@@ -349,16 +349,16 @@ heavy:
|
|||||||
ProductionBar:
|
ProductionBar:
|
||||||
ProvidesPrerequisite@atreides:
|
ProvidesPrerequisite@atreides:
|
||||||
Prerequisite: heavy.atreides
|
Prerequisite: heavy.atreides
|
||||||
Race: atreides
|
Factions: atreides
|
||||||
ProvidesPrerequisite@ordos:
|
ProvidesPrerequisite@ordos:
|
||||||
Prerequisite: heavy.ordos
|
Prerequisite: heavy.ordos
|
||||||
Race: ordos
|
Factions: ordos
|
||||||
ProvidesPrerequisite@harkonnen:
|
ProvidesPrerequisite@harkonnen:
|
||||||
Prerequisite: heavy.harkonnen
|
Prerequisite: heavy.harkonnen
|
||||||
Race: harkonnen
|
Factions: harkonnen
|
||||||
ProvidesPrerequisite@missiletank:
|
ProvidesPrerequisite@missiletank:
|
||||||
Prerequisite: heavy.missiletank
|
Prerequisite: heavy.missiletank
|
||||||
Race: atreides, harkonnen
|
Factions: atreides, harkonnen
|
||||||
RenderBuilding:
|
RenderBuilding:
|
||||||
Image: heavy.harkonnen
|
Image: heavy.harkonnen
|
||||||
RaceImages:
|
RaceImages:
|
||||||
@@ -465,13 +465,13 @@ starport:
|
|||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
ProvidesPrerequisite@atreides:
|
ProvidesPrerequisite@atreides:
|
||||||
Prerequisite: starport.atreides
|
Prerequisite: starport.atreides
|
||||||
Race: atreides
|
Factions: atreides
|
||||||
ProvidesPrerequisite@ordos:
|
ProvidesPrerequisite@ordos:
|
||||||
Prerequisite: starport.ordos
|
Prerequisite: starport.ordos
|
||||||
Race: ordos
|
Factions: ordos
|
||||||
ProvidesPrerequisite@harkonnen:
|
ProvidesPrerequisite@harkonnen:
|
||||||
Prerequisite: starport.harkonnen
|
Prerequisite: starport.harkonnen
|
||||||
Race: harkonnen
|
Factions: harkonnen
|
||||||
Power:
|
Power:
|
||||||
Amount: -40
|
Amount: -40
|
||||||
ProvidesPrerequisite@buildingname:
|
ProvidesPrerequisite@buildingname:
|
||||||
@@ -712,7 +712,7 @@ hightech:
|
|||||||
ordos: hightech.ordos
|
ordos: hightech.ordos
|
||||||
ProvidesPrerequisite@upgrade:
|
ProvidesPrerequisite@upgrade:
|
||||||
Prerequisite: hightech.atreides
|
Prerequisite: hightech.atreides
|
||||||
Race: atreides
|
Factions: atreides
|
||||||
ProvidesPrerequisite@buildingname:
|
ProvidesPrerequisite@buildingname:
|
||||||
AirstrikePower:
|
AirstrikePower:
|
||||||
Icon: ornistrike
|
Icon: ornistrike
|
||||||
@@ -816,7 +816,7 @@ palace:
|
|||||||
Amount: -50
|
Amount: -50
|
||||||
ProvidesPrerequisite@nuke:
|
ProvidesPrerequisite@nuke:
|
||||||
Prerequisite: palace.nuke
|
Prerequisite: palace.nuke
|
||||||
Race: harkonnen
|
Factions: harkonnen
|
||||||
NukePower:
|
NukePower:
|
||||||
Cursor: nuke
|
Cursor: nuke
|
||||||
Icon: deathhand
|
Icon: deathhand
|
||||||
|
|||||||
@@ -141,16 +141,16 @@ SPEN:
|
|||||||
Power:
|
Power:
|
||||||
Amount: -30
|
Amount: -30
|
||||||
ProvidesPrerequisite@soviet:
|
ProvidesPrerequisite@soviet:
|
||||||
Race: soviet, russia, ukraine
|
Factions: soviet, russia, ukraine
|
||||||
Prerequisite: ships.soviet
|
Prerequisite: ships.soviet
|
||||||
ProvidesPrerequisite@sovietvanilla:
|
ProvidesPrerequisite@sovietvanilla:
|
||||||
Race: soviet
|
Factions: soviet
|
||||||
Prerequisite: ships.sovietvanilla
|
Prerequisite: ships.sovietvanilla
|
||||||
ProvidesPrerequisite@russia:
|
ProvidesPrerequisite@russia:
|
||||||
Race: russia
|
Factions: russia
|
||||||
Prerequisite: ships.russia
|
Prerequisite: ships.russia
|
||||||
ProvidesPrerequisite@ukraine:
|
ProvidesPrerequisite@ukraine:
|
||||||
Race: ukraine
|
Factions: ukraine
|
||||||
Prerequisite: ships.ukraine
|
Prerequisite: ships.ukraine
|
||||||
ProvidesPrerequisite@sovietstructure:
|
ProvidesPrerequisite@sovietstructure:
|
||||||
RequiresPrerequisites: structures.soviet
|
RequiresPrerequisites: structures.soviet
|
||||||
@@ -222,19 +222,19 @@ SYRD:
|
|||||||
Power:
|
Power:
|
||||||
Amount: -30
|
Amount: -30
|
||||||
ProvidesPrerequisite@allies:
|
ProvidesPrerequisite@allies:
|
||||||
Race: allies, england, france, germany
|
Factions: allies, england, france, germany
|
||||||
Prerequisite: ships.allies
|
Prerequisite: ships.allies
|
||||||
ProvidesPrerequisite@alliesvanilla:
|
ProvidesPrerequisite@alliesvanilla:
|
||||||
Race: allies
|
Factions: allies
|
||||||
Prerequisite: ships.alliesvanilla
|
Prerequisite: ships.alliesvanilla
|
||||||
ProvidesPrerequisite@england:
|
ProvidesPrerequisite@england:
|
||||||
Race: england
|
Factions: england
|
||||||
Prerequisite: ships.england
|
Prerequisite: ships.england
|
||||||
ProvidesPrerequisite@france:
|
ProvidesPrerequisite@france:
|
||||||
Race: france
|
Factions: france
|
||||||
Prerequisite: ships.france
|
Prerequisite: ships.france
|
||||||
ProvidesPrerequisite@germany:
|
ProvidesPrerequisite@germany:
|
||||||
Race: germany
|
Factions: germany
|
||||||
Prerequisite: ships.germany
|
Prerequisite: ships.germany
|
||||||
ProvidesPrerequisite@alliedstructure:
|
ProvidesPrerequisite@alliedstructure:
|
||||||
RequiresPrerequisites: structures.allies
|
RequiresPrerequisites: structures.allies
|
||||||
@@ -330,7 +330,7 @@ PDOX:
|
|||||||
Bib:
|
Bib:
|
||||||
HasMinibib: Yes
|
HasMinibib: Yes
|
||||||
ProvidesPrerequisite@germany:
|
ProvidesPrerequisite@germany:
|
||||||
Race: germany
|
Factions: germany
|
||||||
Prerequisite: pdox.germany
|
Prerequisite: pdox.germany
|
||||||
ProvidesPrerequisite@germanstructure:
|
ProvidesPrerequisite@germanstructure:
|
||||||
RequiresPrerequisites: structures.germany
|
RequiresPrerequisites: structures.germany
|
||||||
@@ -797,31 +797,31 @@ WEAP:
|
|||||||
Production:
|
Production:
|
||||||
Produces: Vehicle
|
Produces: Vehicle
|
||||||
ProvidesPrerequisite@allies:
|
ProvidesPrerequisite@allies:
|
||||||
Race: allies, england, france, germany
|
Factions: allies, england, france, germany
|
||||||
Prerequisite: vehicles.allies
|
Prerequisite: vehicles.allies
|
||||||
ProvidesPrerequisite@alliesvanilla:
|
ProvidesPrerequisite@alliesvanilla:
|
||||||
Race: allies
|
Factions: allies
|
||||||
Prerequisite: vehicles.alliesvanilla
|
Prerequisite: vehicles.alliesvanilla
|
||||||
ProvidesPrerequisite@england:
|
ProvidesPrerequisite@england:
|
||||||
Race: england
|
Factions: england
|
||||||
Prerequisite: vehicles.england
|
Prerequisite: vehicles.england
|
||||||
ProvidesPrerequisite@france:
|
ProvidesPrerequisite@france:
|
||||||
Race: france
|
Factions: france
|
||||||
Prerequisite: vehicles.france
|
Prerequisite: vehicles.france
|
||||||
ProvidesPrerequisite@germany:
|
ProvidesPrerequisite@germany:
|
||||||
Race: germany
|
Factions: germany
|
||||||
Prerequisite: vehicles.germany
|
Prerequisite: vehicles.germany
|
||||||
ProvidesPrerequisite@soviet:
|
ProvidesPrerequisite@soviet:
|
||||||
Race: soviet, russia, ukraine
|
Factions: soviet, russia, ukraine
|
||||||
Prerequisite: vehicles.soviet
|
Prerequisite: vehicles.soviet
|
||||||
ProvidesPrerequisite@sovietvanilla:
|
ProvidesPrerequisite@sovietvanilla:
|
||||||
Race: soviet
|
Factions: soviet
|
||||||
Prerequisite: vehicles.sovietvanilla
|
Prerequisite: vehicles.sovietvanilla
|
||||||
ProvidesPrerequisite@russia:
|
ProvidesPrerequisite@russia:
|
||||||
Race: russia
|
Factions: russia
|
||||||
Prerequisite: vehicles.russia
|
Prerequisite: vehicles.russia
|
||||||
ProvidesPrerequisite@ukraine:
|
ProvidesPrerequisite@ukraine:
|
||||||
Race: ukraine
|
Factions: ukraine
|
||||||
Prerequisite: vehicles.ukraine
|
Prerequisite: vehicles.ukraine
|
||||||
ProvidesPrerequisite@alliedstructure:
|
ProvidesPrerequisite@alliedstructure:
|
||||||
RequiresPrerequisites: structures.allies
|
RequiresPrerequisites: structures.allies
|
||||||
@@ -870,31 +870,31 @@ FACT:
|
|||||||
BuildPaletteOrder: 1000
|
BuildPaletteOrder: 1000
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
ProvidesPrerequisite@allies:
|
ProvidesPrerequisite@allies:
|
||||||
Race: allies, england, france, germany
|
Factions: allies, england, france, germany
|
||||||
Prerequisite: structures.allies
|
Prerequisite: structures.allies
|
||||||
ProvidesPrerequisite@alliesvanilla:
|
ProvidesPrerequisite@alliesvanilla:
|
||||||
Race: allies
|
Factions: allies
|
||||||
Prerequisite: structures.alliesvanilla
|
Prerequisite: structures.alliesvanilla
|
||||||
ProvidesPrerequisite@england:
|
ProvidesPrerequisite@england:
|
||||||
Race: england
|
Factions: england
|
||||||
Prerequisite: structures.england
|
Prerequisite: structures.england
|
||||||
ProvidesPrerequisite@france:
|
ProvidesPrerequisite@france:
|
||||||
Race: france
|
Factions: france
|
||||||
Prerequisite: structures.france
|
Prerequisite: structures.france
|
||||||
ProvidesPrerequisite@germany:
|
ProvidesPrerequisite@germany:
|
||||||
Race: germany
|
Factions: germany
|
||||||
Prerequisite: structures.germany
|
Prerequisite: structures.germany
|
||||||
ProvidesPrerequisite@soviet:
|
ProvidesPrerequisite@soviet:
|
||||||
Race: soviet, russia, ukraine
|
Factions: soviet, russia, ukraine
|
||||||
Prerequisite: structures.soviet
|
Prerequisite: structures.soviet
|
||||||
ProvidesPrerequisite@sovietvanilla:
|
ProvidesPrerequisite@sovietvanilla:
|
||||||
Race: soviet
|
Factions: soviet
|
||||||
Prerequisite: structures.sovietvanilla
|
Prerequisite: structures.sovietvanilla
|
||||||
ProvidesPrerequisite@russia:
|
ProvidesPrerequisite@russia:
|
||||||
Race: russia
|
Factions: russia
|
||||||
Prerequisite: structures.russia
|
Prerequisite: structures.russia
|
||||||
ProvidesPrerequisite@ukraine:
|
ProvidesPrerequisite@ukraine:
|
||||||
Race: ukraine
|
Factions: ukraine
|
||||||
Prerequisite: structures.ukraine
|
Prerequisite: structures.ukraine
|
||||||
Health:
|
Health:
|
||||||
HP: 1500
|
HP: 1500
|
||||||
@@ -1053,19 +1053,19 @@ HPAD:
|
|||||||
Power:
|
Power:
|
||||||
Amount: -10
|
Amount: -10
|
||||||
ProvidesPrerequisite@allies:
|
ProvidesPrerequisite@allies:
|
||||||
Race: allies, england, france, germany
|
Factions: allies, england, france, germany
|
||||||
Prerequisite: aircraft.allies
|
Prerequisite: aircraft.allies
|
||||||
ProvidesPrerequisite@alliesvanilla:
|
ProvidesPrerequisite@alliesvanilla:
|
||||||
Race: allies
|
Factions: allies
|
||||||
Prerequisite: aircraft.alliesvanilla
|
Prerequisite: aircraft.alliesvanilla
|
||||||
ProvidesPrerequisite@england:
|
ProvidesPrerequisite@england:
|
||||||
Race: england
|
Factions: england
|
||||||
Prerequisite: aircraft.england
|
Prerequisite: aircraft.england
|
||||||
ProvidesPrerequisite@france:
|
ProvidesPrerequisite@france:
|
||||||
Race: france
|
Factions: france
|
||||||
Prerequisite: aircraft.france
|
Prerequisite: aircraft.france
|
||||||
ProvidesPrerequisite@germany:
|
ProvidesPrerequisite@germany:
|
||||||
Race: germany
|
Factions: germany
|
||||||
Prerequisite: aircraft.germany
|
Prerequisite: aircraft.germany
|
||||||
ProvidesPrerequisite@alliedstructure:
|
ProvidesPrerequisite@alliedstructure:
|
||||||
RequiresPrerequisites: structures.allies
|
RequiresPrerequisites: structures.allies
|
||||||
@@ -1118,16 +1118,16 @@ AFLD:
|
|||||||
Produces: Aircraft, Plane
|
Produces: Aircraft, Plane
|
||||||
Reservable:
|
Reservable:
|
||||||
ProvidesPrerequisite@soviet:
|
ProvidesPrerequisite@soviet:
|
||||||
Race: soviet, russia, ukraine
|
Factions: soviet, russia, ukraine
|
||||||
Prerequisite: aircraft.soviet
|
Prerequisite: aircraft.soviet
|
||||||
ProvidesPrerequisite@sovietvanilla:
|
ProvidesPrerequisite@sovietvanilla:
|
||||||
Race: soviet
|
Factions: soviet
|
||||||
Prerequisite: aircraft.sovietvanilla
|
Prerequisite: aircraft.sovietvanilla
|
||||||
ProvidesPrerequisite@russia:
|
ProvidesPrerequisite@russia:
|
||||||
Race: russia
|
Factions: russia
|
||||||
Prerequisite: aircraft.russia
|
Prerequisite: aircraft.russia
|
||||||
ProvidesPrerequisite@ukraine:
|
ProvidesPrerequisite@ukraine:
|
||||||
Race: ukraine
|
Factions: ukraine
|
||||||
Prerequisite: aircraft.ukraine
|
Prerequisite: aircraft.ukraine
|
||||||
ProvidesPrerequisite@sovietstructure:
|
ProvidesPrerequisite@sovietstructure:
|
||||||
RequiresPrerequisites: structures.soviet
|
RequiresPrerequisites: structures.soviet
|
||||||
@@ -1337,16 +1337,16 @@ BARR:
|
|||||||
ProvidesPrerequisite:
|
ProvidesPrerequisite:
|
||||||
Prerequisite: barracks
|
Prerequisite: barracks
|
||||||
ProvidesPrerequisite@soviet:
|
ProvidesPrerequisite@soviet:
|
||||||
Race: soviet, russia, ukraine
|
Factions: soviet, russia, ukraine
|
||||||
Prerequisite: infantry.soviet
|
Prerequisite: infantry.soviet
|
||||||
ProvidesPrerequisite@sovietvanilla:
|
ProvidesPrerequisite@sovietvanilla:
|
||||||
Race: soviet
|
Factions: soviet
|
||||||
Prerequisite: infantry.sovietvanilla
|
Prerequisite: infantry.sovietvanilla
|
||||||
ProvidesPrerequisite@russia:
|
ProvidesPrerequisite@russia:
|
||||||
Race: russia
|
Factions: russia
|
||||||
Prerequisite: infantry.russia
|
Prerequisite: infantry.russia
|
||||||
ProvidesPrerequisite@ukraine:
|
ProvidesPrerequisite@ukraine:
|
||||||
Race: ukraine
|
Factions: ukraine
|
||||||
Prerequisite: infantry.ukraine
|
Prerequisite: infantry.ukraine
|
||||||
ProvidesPrerequisite@sovietstructure:
|
ProvidesPrerequisite@sovietstructure:
|
||||||
RequiresPrerequisites: structures.soviet
|
RequiresPrerequisites: structures.soviet
|
||||||
@@ -1438,19 +1438,19 @@ TENT:
|
|||||||
ProvidesPrerequisite@barracks:
|
ProvidesPrerequisite@barracks:
|
||||||
Prerequisite: barracks
|
Prerequisite: barracks
|
||||||
ProvidesPrerequisite@allies:
|
ProvidesPrerequisite@allies:
|
||||||
Race: allies, england, france, germany
|
Factions: allies, england, france, germany
|
||||||
Prerequisite: infantry.allies
|
Prerequisite: infantry.allies
|
||||||
ProvidesPrerequisite@alliesvanilla:
|
ProvidesPrerequisite@alliesvanilla:
|
||||||
Race: allies
|
Factions: allies
|
||||||
Prerequisite: infantry.alliesvanilla
|
Prerequisite: infantry.alliesvanilla
|
||||||
ProvidesPrerequisite@england:
|
ProvidesPrerequisite@england:
|
||||||
Race: england
|
Factions: england
|
||||||
Prerequisite: infantry.england
|
Prerequisite: infantry.england
|
||||||
ProvidesPrerequisite@france:
|
ProvidesPrerequisite@france:
|
||||||
Race: france
|
Factions: france
|
||||||
Prerequisite: infantry.france
|
Prerequisite: infantry.france
|
||||||
ProvidesPrerequisite@germany:
|
ProvidesPrerequisite@germany:
|
||||||
Race: germany
|
Factions: germany
|
||||||
Prerequisite: infantry.germany
|
Prerequisite: infantry.germany
|
||||||
ProvidesPrerequisite@alliedstructure:
|
ProvidesPrerequisite@alliedstructure:
|
||||||
RequiresPrerequisites: structures.allies
|
RequiresPrerequisites: structures.allies
|
||||||
|
|||||||
@@ -44,10 +44,10 @@ GACNST:
|
|||||||
Selectable:
|
Selectable:
|
||||||
Bounds: 144, 60, 0, -6
|
Bounds: 144, 60, 0, -6
|
||||||
ProvidesPrerequisite@gdi:
|
ProvidesPrerequisite@gdi:
|
||||||
Race: gdi
|
Factions: gdi
|
||||||
Prerequisite: structures.gdi
|
Prerequisite: structures.gdi
|
||||||
ProvidesPrerequisite@nod:
|
ProvidesPrerequisite@nod:
|
||||||
Race: nod
|
Factions: nod
|
||||||
Prerequisite: structures.nod
|
Prerequisite: structures.nod
|
||||||
SelectionDecorations:
|
SelectionDecorations:
|
||||||
VisualBounds: 144, 80, 0, -12
|
VisualBounds: 144, 80, 0, -12
|
||||||
|
|||||||
Reference in New Issue
Block a user