Fix RulesConverter for aftermath

This commit is contained in:
Paul Chote
2010-01-24 16:48:45 +13:00
parent 90d20e32a9
commit c4ffd49add
4 changed files with 24 additions and 21 deletions

View File

@@ -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 );
} }

View File

@@ -0,0 +1,2 @@
DTRK:
-Chronoshiftable:

View File

@@ -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:

View File

@@ -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