Skip to content

Commit

Permalink
Updated autoconfig to check correct plugin GUID
Browse files Browse the repository at this point in the history
  • Loading branch information
Moffein committed Sep 19, 2024
1 parent 9840d3b commit d0a69ec
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Starstorm 2/ModCompat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public static bool ShouldLoadAutoconfigContent()

public static void InitCompat()
{
pluginLoaded = BepInEx.Bootstrap.Chainloader.PluginInfos.ContainsKey("com.TeamMoonstorm.Starstorm2");
pluginLoaded = BepInEx.Bootstrap.Chainloader.PluginInfos.ContainsKey("com.TeamMoonstorm.Starstorm2")
|| BepInEx.Bootstrap.Chainloader.PluginInfos.ContainsKey("com.TeamSS2");
Debug.Log("Starstorm 2 Official Loaded: " + pluginLoaded);

RoR2Application.onLoad += OnLoadActions;
Expand Down
4 changes: 4 additions & 0 deletions Starstorm 2/Starstorm2Release/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
`0.21.3`

- Updated Autoconfig to use the latest SS2 Official plugin GUID.

`0.21.2`

- Fixed JSON error with Portuguese translation.
Expand Down
Binary file modified Starstorm 2/Starstorm2Release/VideogameMod2Unofficial.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion Starstorm 2/Starstorm2Release/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Videogame_Mod_2_Unofficial",
"version_number": "0.21.2",
"version_number": "0.21.3",
"website_url": "https://github.com/Moffein/Starstorm2Unofficial",
"description": "A restoration of the pre-SotV Videogame Mod 2. Compatible with the official Videogame Mod 2!",
"dependencies": [
Expand Down
Binary file not shown.
15 changes: 8 additions & 7 deletions Starstorm 2/StarstormPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace Starstorm2Unofficial
[BepInDependency("pseudopulse.Survariants", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("com.Moffein.BlightedElites", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("com.TeamMoonstorm.Starstorm2", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("com.TeamSS2", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("HIFU.Inferno", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("com.rune580.riskofoptions", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("com.niwith.DropInMultiplayer", BepInDependency.DependencyFlags.SoftDependency)]
Expand Down Expand Up @@ -53,7 +54,7 @@ public class StarstormPlugin : BaseUnityPlugin
{
internal const string guid = "com.ChirrLover.Starstorm2Unofficial";
internal const string modName = "Starstorm 2 Unofficial";
internal const string version = "0.21.1";
internal const string version = "0.21.2";

public static StarstormPlugin instance;

Expand Down Expand Up @@ -197,18 +198,18 @@ private void Initialize()
AddItemIfEnabled(new NkotasHeritage(), ItemCore.instance.items, false);
AddItemIfEnabled(new RelicOfMass(), ItemCore.instance.items);
AddItemIfEnabled(new StirringSoul(), ItemCore.instance.items);

AddItemIfEnabled(new Diary(), ItemCore.instance.items);

AddItemIfEnabled(new StrangeCan(), ItemCore.instance.items);

AddItemIfEnabled(new ErraticGadget(), ItemCore.instance.items, false);
}
else
{
Debug.LogWarning("SS2U: Disabling autoconfig items.");
}

AddItemIfEnabled(new Diary(), ItemCore.instance.items);

AddItemIfEnabled(new StrangeCan(), ItemCore.instance.items);

AddItemIfEnabled(new ErraticGadget(), ItemCore.instance.items, false);

//AddItemIfEnabled(new Malice(), ItemCore.instance.items);
//AddItemIfEnabled(new BrokenBloodTester(), ItemCore.instance.items);
//AddItemIfEnabled(new HottestSauce(), ItemCore.instance.items);
Expand Down

0 comments on commit d0a69ec

Please sign in to comment.