Skip to content

Commit 590ca86

Browse files
authored
Merge pull request #35 from DekuDesu/development
removes stealth chests from being shown, removed fans from chest pool…
2 parents 5188f8e + 8e27aa2 commit 590ca86

4 files changed

Lines changed: 24 additions & 7 deletions

File tree

MiniMapLibrary/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static void AddSize(InteractableKind type,
9494
path: "Textures/MiscIcons/texDroneIconOutlined");
9595

9696
AddSize(InteractableKind.Special, 7, 7,
97-
description: "Special interactibles such as the landing pod",
97+
description: "Special interactibles such as the landing pod and fans",
9898
path: DefaultResourcePath);
9999

100100
AddSize(InteractableKind.Enemy, 3, 3,

MiniMapMod/MiniMapPlugin.cs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace MiniMapMod
1313
{
14-
[BepInPlugin("MiniMap", "Mini Map Mod", "3.1.3")]
14+
[BepInPlugin("MiniMap", "Mini Map Mod", "3.1.4")]
1515
public class MiniMapPlugin : BaseUnityPlugin
1616
{
1717
private readonly ISpriteManager SpriteManager = new SpriteManager();
@@ -190,11 +190,24 @@ private void ScanStaticTypes()
190190

191191
// NON lunar pods
192192
RegisterMonobehaviorType<ChestBehavior>(InteractableKind.Chest, dynamicObject: false,
193-
selector: chest => chest.GetComponent<PurchaseInteraction>().contextToken != "LUNAR_CHEST_CONTEXT");
193+
selector: chest => {
194+
var token = chest.GetComponent<PurchaseInteraction>().contextToken;
195+
return token != "LUNAR_CHEST_CONTEXT" && token.Contains("STEALTH") == false && token != "FAN_CONTEXT";
196+
});
194197

195198
// lunar pods
196-
RegisterMonobehaviorType<ChestBehavior>(InteractableKind.LunarPod, dynamicObject: false,
197-
selector: chest => chest.GetComponent<PurchaseInteraction>().contextToken == "LUNAR_CHEST_CONTEXT");
199+
RegisterMonobehaviorType<ChestBehavior>(InteractableKind.LunarPod, dynamicObject: false,
200+
selector: chest => {
201+
var token = chest.GetComponent<PurchaseInteraction>().contextToken;
202+
return token == "LUNAR_CHEST_CONTEXT";
203+
});
204+
205+
// fans
206+
RegisterMonobehaviorType<ChestBehavior>(InteractableKind.Special, dynamicObject: false,
207+
selector: chest => {
208+
var token = chest.GetComponent<PurchaseInteraction>().contextToken;
209+
return token == "FAN_CONTEXT";
210+
});
198211

199212
// adapative chests
200213
RegisterMonobehaviorType<RouletteChestController>(InteractableKind.Chest, dynamicObject: false);

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ Contact me for my resume
4646
If you have an issue, discover a bug, or have a recommendation please file an issue on my github page.
4747

4848
### Change Log
49+
Minor 3.1.4
50+
- removed stealth chests from being shown on the minimap
51+
- removed transport fans from chest icon to Icon.Special icons
52+
4953
Minor 3.1.3
5054
- added ability to change minimap icon paths ( limited to streaming assets )
5155
- refactored sprite cache

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "MiniMapMod",
3-
"version_number": "3.1.3",
3+
"version_number": "3.1.4",
44
"website_url": "https://github.com/DekuDesu",
5-
"description": "Adds a MiniMap to your game v3.1",
5+
"description": "Adds a MiniMap to your game v3.4",
66
"dependencies": [
77
"bbepis-BepInExPack-5.4.9",
88
"RiskofThunder-HookGenPatcher-1.2.1"

0 commit comments

Comments
 (0)