diff --git a/CHANGELOG.md b/CHANGELOG.md index fcc0086..9e70f00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.2] - 2021-4-3 +### Fixed +- Skill icons were broken for all survivors + ## [1.1.1] - 2020-9-6 ### Added - Patreon diff --git a/CaptainShotgunModes.csproj b/CaptainShotgunModes.csproj index 4b8d9e5..bb7aaad 100644 --- a/CaptainShotgunModes.csproj +++ b/CaptainShotgunModes.csproj @@ -6,52 +6,52 @@ - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\0Harmony.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\0Harmony.dll E:\Games\Steam\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\Assembly-CSharp.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\monomod\tristanmcpherson-R2API\Assembly-CSharp.R2API.mm.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\monomod\tristanmcpherson-R2API\Assembly-CSharp.R2API.mm.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\BepInEx.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\BepInEx.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\BepInEx.Harmony.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\BepInEx.Harmony.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\patchers\BepInEx.MonoMod.Loader\BepInEx.MonoMod.Loader.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\patchers\BepInEx.MonoMod.Loader\BepInEx.MonoMod.Loader.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\BepInEx.Preloader.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\BepInEx.Preloader.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\plugins\tristanmcpherson-R2API\R2API\MMHOOK_Assembly-CSharp.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\plugins\tristanmcpherson-R2API\R2API\MMHOOK_Assembly-CSharp.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\Mono.Cecil.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\Mono.Cecil.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\Mono.Cecil.Mdb.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\Mono.Cecil.Mdb.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\Mono.Cecil.Pdb.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\Mono.Cecil.Pdb.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\Mono.Cecil.Rocks.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\Mono.Cecil.Rocks.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\patchers\BepInEx.MonoMod.Loader\MonoMod.exe + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\patchers\BepInEx.MonoMod.Loader\MonoMod.exe - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\MonoMod.RuntimeDetour.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\MonoMod.RuntimeDetour.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\core\MonoMod.Utils.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\core\MonoMod.Utils.dll - ..\..\..\AppData\Roaming\r2modmanPlus-local\mods\profiles\CaptainShotgunModes\BepInEx\plugins\tristanmcpherson-R2API\R2API\R2API.dll + ..\..\..\AppData\Roaming\r2modmanPlus-local\RiskOfRain2\profiles\CaptainShotgunModes\BepInEx\plugins\tristanmcpherson-R2API\R2API\R2API.dll E:\Games\Steam\steamapps\common\Risk of Rain 2\Risk of Rain 2_Data\Managed\Unity.Postprocessing.Runtime.dll diff --git a/CaptainShotgunModesPlugin.cs b/CaptainShotgunModesPlugin.cs index 8a69e8f..b580883 100644 --- a/CaptainShotgunModesPlugin.cs +++ b/CaptainShotgunModesPlugin.cs @@ -116,7 +116,6 @@ private void InitConfig() "When set to true modes can be cycled through using the mouse wheel" ); - EnableModeSelectionWithDPad = Config.Bind( "Settings", "EnableModeSelectionWithDPad", @@ -231,10 +230,7 @@ public void UpdateHook(On.RoR2.UI.SkillIcon.orig_Update orig, SkillIcon self) if (self.targetSkill && self.targetSkillSlot == SkillSlot.Primary) { - int bodyIndex = self.targetSkill.characterBody.bodyIndex; - SurvivorIndex survivorIndex = SurvivorCatalog.GetSurvivorIndexFromBodyIndex(bodyIndex); - - if (survivorIndex == SurvivorIndex.Captain) + if (self.targetSkill.characterBody.baseNameToken == "CAPTAIN_BODY_NAME") { self.stockText.gameObject.SetActive(true); self.stockText.fontSize = 12f; diff --git a/VERSION b/VERSION index b26afe9..977221b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.1 +1.1.2 diff --git a/dev/post_build.ps1 b/dev/post_build.ps1 index 096495d..28da781 100644 --- a/dev/post_build.ps1 +++ b/dev/post_build.ps1 @@ -6,7 +6,7 @@ $outFolder = $args[2] + 'out\' $version = Get-Content "$($args[2])VERSION" -Copy-Item $dllFilePath -Destination "$env:APPDATA\r2modmanPlus-local\mods\profiles\$($args[3])\BepInEx\plugins\" +Copy-Item $dllFilePath -Destination "$env:APPDATA\r2modmanPlus-local\RiskOfRain2\profiles\$($args[3])\BepInEx\plugins\" Remove-Item -Recurse -Force $outFolder