Skip to content

Commit

Permalink
Release v1.2.0.4 Experimental Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmBatby committed May 20, 2024
1 parent 56c63f2 commit 51f9af2
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 14 deletions.
28 changes: 20 additions & 8 deletions LethalLevelLoader/General/EventPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,33 @@ internal static void RoundManagerSpawnMapObjects_Postfix()
[HarmonyPrefix]
internal static void StartOfRoundOnShipLandedMiscEvents_Prefix()
{
LevelManager.CurrentExtendedLevel.LevelEvents.onShipLand.Invoke();
LevelManager.GlobalLevelEvents.onShipLand.Invoke();
DungeonManager.CurrentExtendedDungeonFlow.DungeonEvents.onShipLand.Invoke();
DungeonManager.GlobalDungeonEvents.onShipLand.Invoke();
if (LevelManager.CurrentExtendedLevel != null)
{
LevelManager.CurrentExtendedLevel.LevelEvents.onShipLand.Invoke();
LevelManager.GlobalLevelEvents.onShipLand.Invoke();
}
if (DungeonManager.CurrentExtendedDungeonFlow != null)
{
DungeonManager.CurrentExtendedDungeonFlow.DungeonEvents.onShipLand.Invoke();
DungeonManager.GlobalDungeonEvents.onShipLand.Invoke();
}
}

[HarmonyPriority(Patches.harmonyPriority)]
[HarmonyPatch(typeof(StartOfRound), "ShipLeave")]
[HarmonyPrefix]
internal static void StartOfRoundShipLeave_Prefix()
{
LevelManager.CurrentExtendedLevel.LevelEvents.onShipLeave.Invoke();
LevelManager.GlobalLevelEvents.onShipLeave.Invoke();
DungeonManager.CurrentExtendedDungeonFlow.DungeonEvents.onShipLeave.Invoke();
DungeonManager.GlobalDungeonEvents.onShipLeave.Invoke();
if (LevelManager.CurrentExtendedLevel != null)
{
LevelManager.CurrentExtendedLevel.LevelEvents.onShipLeave.Invoke();
LevelManager.GlobalLevelEvents.onShipLeave.Invoke();
}
if (DungeonManager.CurrentExtendedDungeonFlow != null)
{
DungeonManager.CurrentExtendedDungeonFlow.DungeonEvents.onShipLeave.Invoke();
DungeonManager.GlobalDungeonEvents.onShipLeave.Invoke();
}
}

[HarmonyPriority(Patches.harmonyPriority)]
Expand Down
2 changes: 1 addition & 1 deletion LethalLevelLoader/General/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public static void StartOfRoundChangeLevel_Postfix(int levelID)
if (RoundManager.currentLevel != null && SaveManager.currentSaveFile.CurrentLevelName != RoundManager.currentLevel.PlanetName)
{
DebugHelper.Log("Saving Current SelectableLevel: " + RoundManager.currentLevel.PlanetName, DebugType.User);
SaveManager.currentSaveFile.CurrentLevelName = RoundManager.currentLevel.PlanetName;
SaveManager.currentSaveFile.CurrentLevelName = RoundManager.currentLevel.name;
//SaveManager.SaveCurrentSelectableLevel(RoundManager.currentLevel);
//LevelLoader.RefreshShipAnimatorClips(LevelManager.CurrentExtendedLevel);
}
Expand Down
9 changes: 6 additions & 3 deletions LethalLevelLoader/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using UnityEngine;
using UnityEngine.Device;
using UnityEngine.SceneManagement;
using Application = UnityEngine.Application;

namespace LethalLevelLoader
{
Expand All @@ -21,7 +22,7 @@ public class Plugin : BaseUnityPlugin
{
public const string ModGUID = "imabatby.lethallevelloader";
public const string ModName = "LethalLevelLoader";
public const string ModVersion = "1.2.0.1";
public const string ModVersion = "1.2.0.4";

internal static Plugin Instance;

Expand Down Expand Up @@ -60,8 +61,10 @@ private void Awake()

GameObject test = new GameObject("LethalLevelLoader AssetBundleLoader");
test.AddComponent<AssetBundleLoader>().LoadBundles();
//test.hideFlags = HideFlags.HideAndDontSave;
DontDestroyOnLoad(test);
if (Application.isEditor)
DontDestroyOnLoad(test);
else
test.hideFlags = HideFlags.HideAndDontSave;
AssetBundleLoader.onBundlesFinishedLoading += AssetBundleLoader.LoadContentInBundles;

ConfigLoader.BindGeneralConfigs();
Expand Down
Binary file modified Thunderstore.zip
Binary file not shown.
16 changes: 16 additions & 0 deletions Thunderstore/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
**Changelog**
--

**<details><summary>Version 1.2.3</summary>**

**<details><summary>Fixes</summary>**

* Fixed issue regarding routing to Company
* Changed ExtendedDungeonFlow.dungeonEvents to ExtendedDungeonFlow.DungeonEvents (Sorry to PoolRooms which likely needs an update)
* Changed TerminalNode parameters used in TerminalManager functions to be ref values (Possibly breaks mrov related mods)
* Added Custom EnemyTypes to debug spawn menus
* Potentially fixed issue where Custom EnemyType Beastiary TerminalNode's had default values
* Potentially fixed issues running the mod in editor by changing GameObject flags to a DontDestroyOnLoad call (Thanks nomnom)
* Fixed issue with mods with matching author and mod names not receiving requested calls (May break custom enemy and item mods with custom code)
* Potentially resolved issue with additional scenes listed in ExtendedLevel's not loading correctly
* Potentially resolved issue with Route locking and hiding
* Implemented @Sylvi's Better Item Saving pull request (Thanks for the help and sorry for the delay)
* Added onShipLand and onShipLeave to ExtendedLevel and ExtendedDungeonFlow events

**<details><summary>Version 1.2.2</summary>**

**<details><summary>Fixes</summary>**
Expand Down
2 changes: 1 addition & 1 deletion Thunderstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ This Mod is Likely To Be Incompataible with **LethalExpansion**, Due To The inhe
**Mrov** *(For collaborating with me on initial Custom weather support related code, assisting in fixes related to the Config file and a bunch of miscellaneous assistance.)*
**LadyRaphtalia**, **Xu Xiaolan**, **Badhamknibbs**, **Mrov**, **sfDesat**, **AboveFire**, **Autumnis The Everchanging**, **RosiePies**, **Drako** & **Audio Knight** *(For testing development on experimental 1.2.0 builds.)*
**狐萝卜呀**, **tumbleweed**, **Corey**, **Ritskee**, **Altan**, **qxZap**, **Salamander**, **Chiseled Cactus**, **Phantom139**, **ImmaBawss**, **takeothewolf**, **zuzaratrust**, **Hackattack242**, **Mail Me Dabs**, **Kyros**, **SourceShard** & **Chupacabra** *(For playtesting and reporting bugs on experimental 1.2.0 builds.*
**Lunxara** *For the heavy, rapid testing throughout all the experimental 1.2.0 builds.*)
**Lunxara** *For the heavy, rapid testing throughout all the experimental 1.2.0 builds.*)
2 changes: 1 addition & 1 deletion Thunderstore/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LethalLevelLoader",
"version_number": "1.2.2",
"version_number": "1.2.4",
"website_url": "https://github.com/IAmBatby/LethalLevelLoader",
"description": "A Custom API to support the manual and dynamic integration of all forms of custom content in Lethal Company. (v50 Compatible)",
"dependencies": [
Expand Down
Binary file modified Thunderstore/plugins/LethalLevelLoader.dll
Binary file not shown.

0 comments on commit 51f9af2

Please sign in to comment.