Skip to content

Commit

Permalink
Renamed Genstep_ScenParts to GenStep_ScenParts to match the new naming
Browse files Browse the repository at this point in the history
convention in vanilla.
  • Loading branch information
edbmods committed Aug 22, 2016
1 parent 12e32b1 commit c2b6fd7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion EdBPrepareCarefully.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
<Compile Include="Source\CustomPawnTest.cs" />
<Compile Include="Source\CustomPawn.cs" />
<Compile Include="Source\PawnColorUtils.cs" />
<Compile Include="Source\Genstep_ScenParts.cs" />
<Compile Include="Source\GenStep_ScenParts.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup />
Expand Down
2 changes: 1 addition & 1 deletion Resources/Defs/MapGeneratorDefs/MapGenerators.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<defName>ScenParts</defName>
<mapGenerator>MainMapGenerator</mapGenerator>
<order>700</order>
<genStep Class="EdB.PrepareCarefully.Genstep_ScenParts"/>
<genStep Class="EdB.PrepareCarefully.GenStep_ScenParts"/>
</GenStepDef>

</Defs>
4 changes: 2 additions & 2 deletions Source/Genstep_ScenParts.cs → Source/GenStep_ScenParts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
namespace EdB.PrepareCarefully
{
// Alternate map generation to include customized pawn, equipment and resources.
public class Genstep_ScenParts : GenStep
public class GenStep_ScenParts : GenStep
{
public Genstep_ScenParts()
public GenStep_ScenParts()
{
}

Expand Down
2 changes: 1 addition & 1 deletion Source/PrepareCarefully.cs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ public bool FindScenPart()
MapGeneratorDef def = DefDatabase<MapGeneratorDef>.AllDefs.First();
if (def != null) {
foreach (var g in def.GenStepsInOrder) {
if (g.genStep != null && g.genStep.GetType().FullName.Equals("EdB.PrepareCarefully.Genstep_ScenParts")) {
if (g.genStep != null && g.genStep.GetType().FullName.Equals(typeof(EdB.PrepareCarefully.GenStep_ScenParts).FullName)) {
return true;
}
}
Expand Down

0 comments on commit c2b6fd7

Please sign in to comment.