Skip to content

Commit

Permalink
only build the graph when we need it
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonta0 committed Dec 29, 2019
1 parent 5bb8cce commit 2214742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EnemizerLibrary/EnemizerLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>6.1.0.129</Version>
<Version>6.1.0.137</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions EnemizerLibrary/Randomization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public RomData MakeRandomization(string basePath, int seed, OptionFlags optionfl

rand = new Random(seed);

Graph graph = new Graph(new GraphData(this.ROM_DATA, this.optionFlags));

if (skin != "Unchanged" && skin != "")
{
ChangeSkin(skin);
Expand Down Expand Up @@ -100,6 +98,8 @@ public RomData MakeRandomization(string basePath, int seed, OptionFlags optionfl
// -----bosses---------------------
if (optionFlags.RandomizeBosses)
{
Graph graph = optionflags.UseManualBosses ? null : new Graph(new GraphData(this.ROM_DATA, this.optionFlags));

this.ROM_DATA.CloseBlindDoor = true;

BossRandomizer br;
Expand Down

0 comments on commit 2214742

Please sign in to comment.