From 284e05cf224a8ab6efaf407eb074889898b84b56 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Mon, 5 Sep 2022 20:13:18 +0800 Subject: [PATCH] update README, with minor changes to mining scale works --- LogisticMiner/LogisticMiner.cs | 8 ++++---- README.md | 23 ++++++++++++++--------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/LogisticMiner/LogisticMiner.cs b/LogisticMiner/LogisticMiner.cs index dd45444..0dc5741 100644 --- a/LogisticMiner/LogisticMiner.cs +++ b/LogisticMiner/LogisticMiner.cs @@ -40,7 +40,7 @@ public class LogisticMiner : BaseUnityPlugin _waterSpeed = Config.Bind("General", "WaterMiningSpeed", _waterSpeed, "Water mining speed (count per second)").Value; _miningScale = Config.Bind("General", "MiningScale", _miningScale, - "Must not be less than 100. Mining scale(in percents) for slots nearly empty, and the scale reduces to 1 smoothly till reach half of slot limits. Please note that the power consumption increases by the square of the scale which is the same as Advanced Mining Machine") + "Must not be less than 100. Mining scale(in percents) for slots below half of slot limits, and the scale reduces to 100% smoothly till reach full. Please note that the power consumption increases by the square of the scale which is the same as Advanced Mining Machine") .Value; if (_miningScale < 100) { @@ -179,9 +179,9 @@ public class LogisticMiner : BaseUnityPlugin var miningScale = _miningScale; if (miningScale > 100) { - if (stationStore.count * 2 < stationStore.max) + if (stationStore.count * 2 > stationStore.max) miningScale = 100 + - ((miningScale - 100) * (stationStore.max - stationStore.count * 2) + + ((miningScale - 100) * (stationStore.max - stationStore.count / 2) + stationStore.max - 1) / stationStore.max; else miningScale = 100; @@ -233,7 +233,7 @@ public class LogisticMiner : BaseUnityPlugin vcd.FrameNext += miningFrames; } while (vcd.FrameNext <= _frame); - + PerformanceMonitor.EndSample(ECpuWorkEntry.Miner); } diff --git a/README.md b/README.md index 1d67865..de20bcb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## [CheatEnabler](CheatEnabler) ### Enable cheat functions as below -* Disable abnormal determinants (Allow get achievements on using Console and DevShortcuts) +* Disable abnormal determinants (Disable all sanity checks, and can get achievements on using Console and DevShortcuts). * Shift+F4 to switch Developer Mode on/off (no message, tip or sounds on switch). * Numpad 1: Gets all items and extends bag. * Numpad 2: Boosts walk speed, gathering speed and mecha energy restoration. @@ -14,7 +14,7 @@ * Numpad 8: Unlocks Drive Engine 2 and maximize energy. * Numpad 9: Unlocks ability to warp. * Numpad 0: No costs for Logistic Storages' output. - * LCtrl + T: Unlocks all techs (not upgrades) + * LCtrl + T: Unlocks all techs (not upgrades). * LCtrl + A: Resets all local achievements. * LCtrl + Q: Adds 10000 to every metadata. * LCtrl + W: Enters Sandbox Mode. @@ -22,16 +22,21 @@ * Numpad /: Removes proliferations from items on hand. * PageDown: Remembers Pose of game camera. * PageUp: Locks game camera using remembered Pose. -* Always infinite resource +* Always infinite resource. +* Each function can be enabled individually in config file. ## [LogisticMiner](LogisticMiner) ### Logistic Storages can mine all ores/water on current planet -* The same speed as normal Mining Machine for normal ores and 100/s for water. -* Energy costs: 200kJ for each vein or oil, 50kJ for each water. `Veins Utilization` upgrades does not increase power consumption. -* `Veins Utilization` upgrades affects mining speed and ore consumption as normal. +* Inspired by [PlanetMiner](https://dsp.thunderstore.io/package/blacksnipebiu/PlanetMiner)([github](https://github.com/blacksnipebiu/PlanetMiner)). +* The same speed as normal Mining Machine for normal ores and 100/s(configurable) for water. +* Can set mining scale in configuration, which makes ILS working like Advance Mining Machines: power consumption increases by the square of the scale. +* `Veins Utilization` upgrades affects mining speed and ore consumption as normal miners. +* Energy costs: 1MW/vein-group & 10MW/water-slot & 1.8MW/oil-seep(configurable), `Veins Utilization` upgrades does not increase power consumption(unlike PlanetMiner). + ## [HideTips](HideTips) -### Hide/Disable various in-game tips -* Tips that can be hidden: random-reminder, tutorial, achievement/milestone card -* Each type of tips can be configurable individually +### Hide/Disable various in-game tips/messages +* Tips/messages that can be hidden: random-reminder, tutorial, achievement/milestone card. +* Each type of tips/messages can be configurable individually. +* For sanity check warning messages, please check [CheatEnabler](CheatEnabler)