1212
1313namespace MiniMapMod
1414{
15- [ BepInPlugin ( "MiniMap" , "Mini Map Mod" , "3.2.0 " ) ]
15+ [ BepInPlugin ( "MiniMap" , "Mini Map Mod" , "3.1.6 " ) ]
1616 public class MiniMapPlugin : BaseUnityPlugin
1717 {
1818 private readonly ISpriteManager SpriteManager = new SpriteManager ( ) ;
@@ -50,7 +50,7 @@ public void Awake()
5050 logger . LogInfo ( $ "Loaded log level: { Settings . LogLevel } ") ;
5151
5252 // bind options
53- InteractableKind [ ] kinds = Enum . GetValues ( typeof ( InteractableKind ) ) . Cast < InteractableKind > ( ) . Where ( x=> x != InteractableKind . none && x != InteractableKind . All ) . ToArray ( ) ;
53+ InteractableKind [ ] kinds = Enum . GetValues ( typeof ( InteractableKind ) ) . Cast < InteractableKind > ( ) . Where ( x => x != InteractableKind . none && x != InteractableKind . All ) . ToArray ( ) ;
5454
5555 foreach ( var item in kinds )
5656 {
@@ -66,7 +66,7 @@ public void Awake()
6666
6767 // scan scene should NEVER throw exceptions
6868 // doing so prevents all other subscribing events to not fire (after the exception)
69-
69+
7070 // this will re-scan the scene every time any npc, player dies
7171 GlobalEventManager . onCharacterDeathGlobal += ( x ) => ScanScene ( ) ;
7272
@@ -78,13 +78,13 @@ public void Awake()
7878 IScanner < ChestBehavior > chestScanner = new MonoBehaviorScanner < ChestBehavior > ( logger ) ;
7979
8080 // responsible for finding the InteractibleKind for each chest
81- IInteractibleSorter < ChestBehavior > chestSorter = new MonoBehaviourSorter < ChestBehavior > (
81+ IInteractibleSorter < ChestBehavior > chestSorter = new MonoBehaviourSorter < ChestBehavior > (
8282 new ISorter < ChestBehavior > [ ] {
8383 new DefaultSorter < ChestBehavior > ( InteractableKind . Chest , ( x ) => true ) ,
8484 new DefaultSorter < ChestBehavior > ( InteractableKind . LunarPod , ( x ) => true ) ,
8585 }
8686 ) ;
87-
87+
8888 // TODO: Create interface/class resposible for converting these chests and their kind
8989 // into tracked objects
9090 }
@@ -144,7 +144,7 @@ private void UpdateIconPositions()
144144 {
145145 // only perform this calculation once per frame
146146 Vector2 cameraPositionMinimap = Camera . main . transform . position . ToMinimapPosition ( TrackedDimensions ) ;
147-
147+
148148 for ( int i = 0 ; i < TrackedObjects . Count ; i ++ )
149149 {
150150 ITrackedObject item = TrackedObjects [ i ] ;
@@ -195,7 +195,7 @@ private bool TryCreateMinimap()
195195 GameObject objectivePanel = GameObject . Find ( "ObjectivePanel" ) ;
196196
197197 if ( objectivePanel == null || this . SpriteManager == null )
198- {
198+ {
199199 Minimap . Destroy ( ) ;
200200 return false ;
201201 }
@@ -261,7 +261,7 @@ private void ScanStaticTypes()
261261 }
262262
263263 // NON lunar pods
264- RegisterMonobehaviorType < ChestBehavior > ( InteractableKind . Chest , dynamicObject : false ,
264+ RegisterMonobehaviorType < ChestBehavior > ( InteractableKind . Chest , dynamicObject : false ,
265265 selector : chest => {
266266 var token = chest ? . GetComponent < PurchaseInteraction > ( ) ? . contextToken ;
267267
@@ -284,7 +284,7 @@ private void ScanStaticTypes()
284284 if ( token is null )
285285 {
286286 logger . LogDebug ( $ "No { nameof ( PurchaseInteraction ) } component on { nameof ( ChestBehavior ) } . GameObject.name = { chest . gameObject . name } ") ;
287-
287+
288288 // since we're explicitly looking for lunar pods here DONT return true
289289 return false ;
290290 }
@@ -313,7 +313,7 @@ private void ScanStaticTypes()
313313 RegisterMonobehaviorType < ShrineRestackBehavior > ( InteractableKind . Shrine , dynamicObject : false ) ;
314314
315315 // normal shops
316- RegisterMonobehaviorType < ShopTerminalBehavior > ( InteractableKind . Chest , dynamicObject : false ,
316+ RegisterMonobehaviorType < ShopTerminalBehavior > ( InteractableKind . Chest , dynamicObject : false ,
317317 selector : shop => {
318318
319319 var token = shop ? . GetComponent < PurchaseInteraction > ( ) ? . contextToken ;
0 commit comments