mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 12:53:34 +08:00
update README, with minor changes to mining scale works
This commit is contained in:
@@ -40,7 +40,7 @@ public class LogisticMiner : BaseUnityPlugin
|
|||||||
_waterSpeed = Config.Bind("General", "WaterMiningSpeed", _waterSpeed,
|
_waterSpeed = Config.Bind("General", "WaterMiningSpeed", _waterSpeed,
|
||||||
"Water mining speed (count per second)").Value;
|
"Water mining speed (count per second)").Value;
|
||||||
_miningScale = Config.Bind("General", "MiningScale", _miningScale,
|
_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;
|
.Value;
|
||||||
if (_miningScale < 100)
|
if (_miningScale < 100)
|
||||||
{
|
{
|
||||||
@@ -179,9 +179,9 @@ public class LogisticMiner : BaseUnityPlugin
|
|||||||
var miningScale = _miningScale;
|
var miningScale = _miningScale;
|
||||||
if (miningScale > 100)
|
if (miningScale > 100)
|
||||||
{
|
{
|
||||||
if (stationStore.count * 2 < stationStore.max)
|
if (stationStore.count * 2 > stationStore.max)
|
||||||
miningScale = 100 +
|
miningScale = 100 +
|
||||||
((miningScale - 100) * (stationStore.max - stationStore.count * 2) +
|
((miningScale - 100) * (stationStore.max - stationStore.count / 2) +
|
||||||
stationStore.max - 1) / stationStore.max;
|
stationStore.max - 1) / stationStore.max;
|
||||||
else
|
else
|
||||||
miningScale = 100;
|
miningScale = 100;
|
||||||
@@ -233,7 +233,7 @@ public class LogisticMiner : BaseUnityPlugin
|
|||||||
|
|
||||||
vcd.FrameNext += miningFrames;
|
vcd.FrameNext += miningFrames;
|
||||||
} while (vcd.FrameNext <= _frame);
|
} while (vcd.FrameNext <= _frame);
|
||||||
|
|
||||||
PerformanceMonitor.EndSample(ECpuWorkEntry.Miner);
|
PerformanceMonitor.EndSample(ECpuWorkEntry.Miner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
23
README.md
23
README.md
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## [CheatEnabler](CheatEnabler)
|
## [CheatEnabler](CheatEnabler)
|
||||||
### Enable cheat functions as below
|
### 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).
|
* Shift+F4 to switch Developer Mode on/off (no message, tip or sounds on switch).
|
||||||
* Numpad 1: Gets all items and extends bag.
|
* Numpad 1: Gets all items and extends bag.
|
||||||
* Numpad 2: Boosts walk speed, gathering speed and mecha energy restoration.
|
* 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 8: Unlocks Drive Engine 2 and maximize energy.
|
||||||
* Numpad 9: Unlocks ability to warp.
|
* Numpad 9: Unlocks ability to warp.
|
||||||
* Numpad 0: No costs for Logistic Storages' output.
|
* 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 + A: Resets all local achievements.
|
||||||
* LCtrl + Q: Adds 10000 to every metadata.
|
* LCtrl + Q: Adds 10000 to every metadata.
|
||||||
* LCtrl + W: Enters Sandbox Mode.
|
* LCtrl + W: Enters Sandbox Mode.
|
||||||
@@ -22,16 +22,21 @@
|
|||||||
* Numpad /: Removes proliferations from items on hand.
|
* Numpad /: Removes proliferations from items on hand.
|
||||||
* PageDown: Remembers Pose of game camera.
|
* PageDown: Remembers Pose of game camera.
|
||||||
* PageUp: Locks game camera using remembered Pose.
|
* PageUp: Locks game camera using remembered Pose.
|
||||||
* Always infinite resource
|
* Always infinite resource.
|
||||||
|
* Each function can be enabled individually in config file.
|
||||||
|
|
||||||
|
|
||||||
## [LogisticMiner](LogisticMiner)
|
## [LogisticMiner](LogisticMiner)
|
||||||
### Logistic Storages can mine all ores/water on current planet
|
### 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.
|
* Inspired by [PlanetMiner](https://dsp.thunderstore.io/package/blacksnipebiu/PlanetMiner)([github](https://github.com/blacksnipebiu/PlanetMiner)).
|
||||||
* Energy costs: 200kJ for each vein or oil, 50kJ for each water. `Veins Utilization` upgrades does not increase power consumption.
|
* The same speed as normal Mining Machine for normal ores and 100/s(configurable) for water.
|
||||||
* `Veins Utilization` upgrades affects mining speed and ore consumption as normal.
|
* 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)
|
## [HideTips](HideTips)
|
||||||
### Hide/Disable various in-game tips
|
### Hide/Disable various in-game tips/messages
|
||||||
* Tips that can be hidden: random-reminder, tutorial, achievement/milestone card
|
* Tips/messages that can be hidden: random-reminder, tutorial, achievement/milestone card.
|
||||||
* Each type of tips can be configurable individually
|
* Each type of tips/messages can be configurable individually.
|
||||||
|
* For sanity check warning messages, please check [CheatEnabler](CheatEnabler)
|
||||||
|
|||||||
Reference in New Issue
Block a user