矿架改回 4×4(5×4 放不进任何容器);测试按钮清柜台和一半储物箱
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d89ccfeac
commit
66b01d5111
5 files changed
+16
-6
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using Decentralized.Domain;
|
||||
|
||||
@@ -98,6 +99,15 @@ namespace Decentralized
|
||||
Place(item);
|
||||
Log.Info($"展示样例(鉴定){_next}/{All.Count}:{c.Name}");
|
||||
}));
|
||||
ModHelper.AddDebugFunction(ModInfo.Id, ModInfo.Name, "Clear counter + half of storage (test)", () => Log.Guard("清柜台与一半储物", () =>
|
||||
{
|
||||
var e = EmporiumEntry.Instance;
|
||||
int counter = 0, bays = 0;
|
||||
foreach (var it in e.backInvinvElement.childItems.ToList()) { it.Destroy(); counter++; }
|
||||
var storage = e.invElement.childItems.Where(i => i.identifier != null && i.identifier.StartsWith("storage_bay")).ToList();
|
||||
for (int i = 0; i < storage.Count; i += 2) { storage[i].Destroy(); bays++; }
|
||||
Log.Info($"清空柜台 {counter} 件;储物箱 {storage.Count} 个里去掉 {bays} 个");
|
||||
}));
|
||||
ModHelper.AddDebugFunction(ModInfo.Id, ModInfo.Name, "Paper: dump starters (test)", () => Log.Guard("纸张起点", () =>
|
||||
{
|
||||
var sb = new System.Text.StringBuilder("\n");
|
||||
|
||||
Reference in new issue
Block a user