SHA256
Add NonTile Mode Prototype
This commit is contained in:
4 files changed
+89
-2
No files matched your search
@@ -1,7 +1,19 @@
|
||||
using ADOFAIRenderer.Core;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace ADOFAIRenderer.Patch.Game
|
||||
{
|
||||
[HarmonyPatch(typeof(scrFloor))]
|
||||
// ReSharper disable once InconsistentNaming
|
||||
public class scrFloorPatch
|
||||
{
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch("SpawnPortalParticles")]
|
||||
public static bool SkipPortalSpawn()
|
||||
{
|
||||
var nonTile = RenderManager.Instance.OverrideLoading &&
|
||||
RenderManager.Instance.Configuration.AdvancedConfig.NonTile;
|
||||
return !nonTile;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user