Skip to content

Commit

Permalink
FirstTimeAudio Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmBatby committed Dec 20, 2024
1 parent d22dd31 commit 2ad5751
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 3 additions & 6 deletions LethalLevelLoader/LethalLevelLoader.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>

Expand Down Expand Up @@ -63,7 +63,7 @@
<ItemGroup>
<PackageReference Include="Evaisa.LethalLib" Version="0.16.0" />
<PackageReference Include="MaxWasUnavailable.LethalModDataLib" Version="1.2.2" />
<PackageReference Include="LethalCompany.GameLibs.Steam" Version="56.0.1-ngd.0" Publicize="true" />
<PackageReference Include="LethalCompany.GameLibs.Steam" Version="67.0.0-ngd.0" Publicize="true" />
</ItemGroup>

<Target Name="NetcodePatch" AfterTargets="PostBuildEvent">
Expand Down Expand Up @@ -105,10 +105,7 @@
<MakeDir Directories="$(ProjectDir)dist/output/" Condition="!Exists('$(ProjectDir)dist/output/')" />
<Copy SourceFiles="$(ProjectDir)bin/Release/netstandard2.1/$(AssemblyName).dll" DestinationFiles="$(ProjectDir)dist/output/$(AssemblyName).dll" />

<ZipDirectory
SourceDirectory="$(ProjectDir)dist/output/"
DestinationFile="$(ProjectDir)dist/curseforge.zip"
Overwrite="true" />
<ZipDirectory SourceDirectory="$(ProjectDir)dist/output/" DestinationFile="$(ProjectDir)dist/curseforge.zip" Overwrite="true" />
</Target>

</Project>
2 changes: 2 additions & 0 deletions LethalLevelLoader/Patches/DungeonManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ internal static void PatchVanillaDungeonLists()
IndoorMapType newIndoorMapType = new IndoorMapType();
newIndoorMapType.dungeonFlow = extendedDungeonFlow.DungeonFlow;
newIndoorMapType.MapTileSize = extendedDungeonFlow.MapTileSize;
if (extendedDungeonFlow.FirstTimeDungeonAudio != null)
newIndoorMapType.firstTimeAudio = extendedDungeonFlow.FirstTimeDungeonAudio;
Patches.RoundManager.dungeonFlowTypes = Patches.RoundManager.dungeonFlowTypes.AddItem(newIndoorMapType).ToArray();
if (extendedDungeonFlow.FirstTimeDungeonAudio != null)
Patches.RoundManager.firstTimeDungeonAudios = Patches.RoundManager.firstTimeDungeonAudios.AddItem(extendedDungeonFlow.FirstTimeDungeonAudio).ToArray();
Expand Down

0 comments on commit 2ad5751

Please sign in to comment.