diff --git a/CHANGELOG.md b/CHANGELOG.md
index aabfc1e..c05d55a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## 1.0.0-rc2
+
+- 去掉反射:电子元件升级矿架时,原版元件工厂改用游戏公开的 `DirectoryMaster.GetFactory` 取得,清单恢复为不声明任何能力(rc1 因反射被游戏拒绝启用)。升级流程重新走通:普通 ×4 解锁第 3 槽,稀有 ×1 第 4 槽,稀有 ×2 第 5 槽。
+
## 1.0.0-rc1
### 第九阶段:剧情与收尾
diff --git a/README.md b/README.md
index aba2ff1..1bc50a3 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Probably Decentralized
-A mod for *Probably Stolen*: crypto mining, a fictional coin market, stablecoins, laundering and its risks, a Web3 black market, built on the game's own power, events and law systems. Current version: 1.0.0-rc1 (release candidate).
+A mod for *Probably Stolen*: crypto mining, a fictional coin market, stablecoins, laundering and its risks, a Web3 black market, built on the game's own power, events and law systems. Current version: 1.0.0-rc2 (release candidate).
All coins, exchanges and events are fictional and have no real-world value.
diff --git a/src/Decentralized/Core.cs b/src/Decentralized/Core.cs
index ca7d93b..1868ed4 100644
--- a/src/Decentralized/Core.cs
+++ b/src/Decentralized/Core.cs
@@ -7,7 +7,7 @@ namespace Decentralized
{
public const string Id = "probably_decentralized";
public const string Name = "Probably Decentralized";
- public const string Version = "1.0.0-rc1";
+ public const string Version = "1.0.0-rc2";
}
/// 本地化:游戏的 mod 本地化表(ModFiles/Localization/*.csv),当前语言缺失时回退英文。
diff --git a/src/Decentralized/Items.cs b/src/Decentralized/Items.cs
index 6536e7e..7bfa0a4 100644
--- a/src/Decentralized/Items.cs
+++ b/src/Decentralized/Items.cs
@@ -515,18 +515,9 @@ namespace Decentralized
{
try
{
- var directories = (System.Collections.IDictionary)typeof(DirectoryMaster).GetField("singletonInstance", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static)?.GetValue(null);
- var list = directories?[typeof(GameItem)] as System.Collections.IList;
- if (list == null) { Log.Warn("[Rig] 找不到原版物品目录,电子元件不能升级矿架"); return; }
foreach (var id in new[] { "common_electronic", "rare_electronic" })
{
- Func vanilla = null;
- foreach (var d in list)
- {
- if (d is ModItemDirectory) continue;
- var fd = d.GetType().GetProperty("factoryDictionary")?.GetValue(d) as Dictionary>;
- if (fd != null && fd.TryGetValue(id, out var f)) { vanilla = f; break; }
- }
+ var vanilla = DirectoryMaster.GetFactory(id);
if (vanilla == null) { Log.Warn($"[Rig] 找不到原版 {id}"); continue; }
var make = vanilla;
dir.Set(id, () =>
diff --git a/src/Decentralized/ModFiles/manifest.xml b/src/Decentralized/ModFiles/manifest.xml
index 8d6f4cf..7bdfda4 100644
--- a/src/Decentralized/ModFiles/manifest.xml
+++ b/src/Decentralized/ModFiles/manifest.xml
@@ -3,7 +3,7 @@
probably_decentralized
Probably Decentralized
edward
- 1.0.0-rc1
+ 1.0.0-rc2
Mine PSC with graphics cards, trade it on a fictional exchange, and cash it out past the compliance desk. Work in progress. All coins, exchanges and events are fictional and have no real-world value.
0.46