mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(uxassist): exclude protected veins from mining displays
Use productive veins for mining-rate estimates, resource analysis and hover counts without mutating miners or reserves. Keep zero-cost mining productive, including CheatEnabler infinite resources. Refs #95
This commit is contained in:
1 parent
47ba29447c
commit
06a8445907
6 files changed
+203
-4
No files matched your search
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.CompilerServices;
|
||||
using BepInEx.Configuration;
|
||||
using CommonAPI.Systems;
|
||||
using UnityEngine;
|
||||
@@ -12,6 +13,10 @@ namespace UXAssist.Patches.Factory;
|
||||
[ModFeature("Factory", Order = 10)]
|
||||
public static class FactoryPatch
|
||||
{
|
||||
/// <summary>Returns the mining cost rate shared by vein-protection display calculations.</summary>
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public static float GetMiningCostRate(GameHistoryData history) => history.miningCostRate;
|
||||
|
||||
public static ConfigEntry<bool> UnlimitInteractiveEnabled;
|
||||
public static ConfigEntry<bool> RemoveSomeConditionEnabled;
|
||||
public static ConfigEntry<bool> NightLightEnabled;
|
||||
|
||||
Reference in new issue
Block a user