1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 02:53:29 +08:00

update README, with minor changes to mining scale works

This commit is contained in:
2022-09-05 20:13:18 +08:00
parent f8836c4c88
commit 284e05cf22
2 changed files with 18 additions and 13 deletions

View File

@@ -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);
}

View File

@@ -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)