File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55using System ;
66using System . Collections . Generic ;
77
8- [ BepInPlugin ( "com.chrismzz.swapcrestonhit" , "Swap Crest On Hit" , "1.1.0 " ) ]
8+ [ BepInPlugin ( "com.chrismzz.swapcrestonhit" , "Swap Crest On Hit" , "1.1.1 " ) ]
99
1010public class SwapCrestOnHit : BaseUnityPlugin
1111{
@@ -36,8 +36,11 @@ private static void TakeDamagePostfix(HeroController __instance)
3636 int crestCount = ToolItemManager . GetUnlockedCrestsCount ( ) ;
3737 foreach ( ToolCrest crest in allCrests )
3838 {
39- if ( ! crest . IsHidden && crest . IsBaseVersion && crest . IsUnlocked )
40- availableCrests . Add ( crest ) ;
39+ if ( ! crest . IsHidden && crest . IsUnlocked )
40+ {
41+ if ( ! crest . IsUpgradedVersionUnlocked )
42+ availableCrests . Add ( crest ) ;
43+ }
4144 }
4245 bool canSwap = ( crestCount > 1 && __instance . playerData . CurrentCrestID != Gameplay . CursedCrest . name && __instance . playerData . CurrentCrestID != Gameplay . CloaklessCrest . name ) ;
4346 List < ToolCrest > crestsList = crestSanity . Value ? availableCrests : allCrests ;
You can’t perform that action at this time.
0 commit comments