Fix RulesConverter for aftermath
This commit is contained in:
@@ -209,7 +209,8 @@ namespace RulesConverter
|
|||||||
var yaml = MiniYaml.FromFile( outputFile );
|
var yaml = MiniYaml.FromFile( outputFile );
|
||||||
if( File.Exists( "merge-" + outputFile ) )
|
if( File.Exists( "merge-" + outputFile ) )
|
||||||
yaml = MiniYaml.Merge( MiniYaml.FromFile( "merge-" + outputFile ), yaml );
|
yaml = MiniYaml.Merge( MiniYaml.FromFile( "merge-" + outputFile ), yaml );
|
||||||
yaml.OptimizeInherits( MiniYaml.FromFile( "defaults.yaml" ) );
|
// A hack, but it works
|
||||||
|
yaml.OptimizeInherits( MiniYaml.FromFile( "../ra/defaults.yaml" ) );
|
||||||
yaml.WriteToFile( outputFile );
|
yaml.WriteToFile( outputFile );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
mods/aftermath/merge-rules.yaml
Normal file
2
mods/aftermath/merge-rules.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
DTRK:
|
||||||
|
-Chronoshiftable:
|
||||||
@@ -1,3 +1,22 @@
|
|||||||
|
DTRK:
|
||||||
|
Inherits: ^Vehicle
|
||||||
|
Buildable:
|
||||||
|
TechLevel: 13
|
||||||
|
Prerequisites: mslo
|
||||||
|
Owner: allies,soviet
|
||||||
|
Cost: 2400
|
||||||
|
Description: Demo Truck
|
||||||
|
Unit:
|
||||||
|
HP: 110
|
||||||
|
Armor: light
|
||||||
|
Sight: 3
|
||||||
|
Speed: 8
|
||||||
|
AttackBase:
|
||||||
|
PrimaryWeapon: Democharge
|
||||||
|
RenderUnit:
|
||||||
|
DemoTruck:
|
||||||
|
-Chronoshiftable:
|
||||||
|
|
||||||
STNK:
|
STNK:
|
||||||
Inherits: ^Vehicle
|
Inherits: ^Vehicle
|
||||||
Unit:
|
Unit:
|
||||||
@@ -55,25 +74,6 @@ CTNK:
|
|||||||
RenderUnit:
|
RenderUnit:
|
||||||
ChronoshiftDeploy:
|
ChronoshiftDeploy:
|
||||||
|
|
||||||
DTRK:
|
|
||||||
Inherits: ^Vehicle
|
|
||||||
Buildable:
|
|
||||||
TechLevel: 13
|
|
||||||
Prerequisites: mslo
|
|
||||||
Owner: allies,soviet
|
|
||||||
Cost: 2400
|
|
||||||
Description: Demo Truck
|
|
||||||
Unit:
|
|
||||||
HP: 110
|
|
||||||
Armor: light
|
|
||||||
Sight: 3
|
|
||||||
Speed: 8
|
|
||||||
AttackBase:
|
|
||||||
PrimaryWeapon: Democharge
|
|
||||||
RenderUnit:
|
|
||||||
-Chronoshiftable:
|
|
||||||
DemoTruck:
|
|
||||||
|
|
||||||
QTNK:
|
QTNK:
|
||||||
Inherits: ^Vehicle
|
Inherits: ^Vehicle
|
||||||
Buildable:
|
Buildable:
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ pushd mods\ra\
|
|||||||
..\..\RulesConverter\bin\debug\RulesConverter.exe units.ini rules.ini trees.ini campaignUnits.ini rules.yaml
|
..\..\RulesConverter\bin\debug\RulesConverter.exe units.ini rules.ini trees.ini campaignUnits.ini rules.yaml
|
||||||
popd
|
popd
|
||||||
pushd mods\aftermath\
|
pushd mods\aftermath\
|
||||||
RulesConverter\bin\debug\RulesConverter.exe aftermathUnits.ini aftrmath.ini rules.yaml
|
..\..\RulesConverter\bin\debug\RulesConverter.exe aftermathUnits.ini aftrmath.ini rules.yaml
|
||||||
popd
|
popd
|
||||||
Reference in New Issue
Block a user