1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 19:42:17 +08:00

Dustbin v1.1.0 release

This commit is contained in:
2022-11-27 17:52:52 +08:00
parent 3aec8148b0
commit 3b9e35aa5f
8 changed files with 382 additions and 72 deletions

View File

@@ -1,33 +1,29 @@
# Dustbin
#### Storages can destroy incoming items while capacity limited to zero
#### 空间限制为0的储物仓可以销毁送进的物品
#### Can turn Storages and Tanks into Dustbin(Destroy incoming items)
#### 储物仓和储液罐可以转变为垃圾桶(销毁送进的物品)
## Updates
* 1.1.0
* Rewrite whole plugin, make a checkbox on UI so that you can turn storages into dustbin by just ticking it.
* Can turn tank into dustbin now.
* 1.0.1
* Remove a debug log
* Remove a debug log
## Usage
* Conditions to be dustbin: Storages with capacity limited to zero at top of stacks(or only one level), and empty in 1st cell.
* A checkbox is added to Storages and Tanks UI, which turns them into dustbins.
* Items sent into dustbins are removed immediately.
* Can get sands from destroyed items (with factors configurable):
* Get 10/100 sands from each silicon/fractal silicon ore
* Get 1 sand from any other normal item but fluid
* Known bugs
* Stack 1 more storage up on a zero limited one and remove it will cause dustbin stop working. Just put somethings
in and take them out to make the dustbin working again.
This is caused by a logic bug in original code where faulty set `lastFullItem` field of `StorageComponent` for
empty storages.
* Get 10/100 sands from each silicon/fractal silicon ore
* Get 1 sand from any other normal item but fluid
## 使用说明
* 垃圾桶条件空间限制为0第一格为空并且放在堆叠顶部(或者只有一层)的储物仓
* 在储物仓和储液罐上增加一个垃圾桶的勾选框
* 送进垃圾桶的物品会立即被移除。
* 可以从移除的物品中获得沙子(可配置,下为默认值):
* 从硅石和分形硅石中获得10/100个沙子。
* 从普通物品中获得1个沙子但液体不会给沙子。
* 已知Bug
* 在空间限制为0的储物仓上面再叠一个储物仓后再移除会导致垃圾箱功能失效放一个物品进去再拿出来即可恢复正常。
这是原游戏的逻辑Bug错误设置了`StorageComponent``lastFullItem`字段导致。
* 从硅石和分形硅石中获得10/100个沙子。
* 从普通物品中获得1个沙子但液体不会给沙子。