Stage 9.1: story links (Serpico, Eleanor, Officer Lun) and newspaper importance fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Opus 5.5 committed 2026-11-04 09:04:50 +08:00
1 parent 96e91a4884
commit 62bd641283
15 files changed
+240 -17

No files matched your search

+7 -3
View File
@@ -142,6 +142,7 @@ namespace Decentralized
{
var d = Session.Data;
int day = StoreStation.GetDayCounter();
StoryLinks.Night(d, day);
var events = ActiveEvents();
Log.Info($"夜间事件:{string.Join(",", events)}(新增 {string.Join(",", events.Where(e => !d.ActiveEvents.Contains(e)))}),黑市声望 {StoreReputation.GetBMReputation()}");
bool wasSanctioned = d.Mixer.Sanctioned(day);
@@ -307,10 +308,13 @@ namespace Decentralized
}
}
/// <summary>mod 新闻:不带价格修正的新闻事件,和原版新闻一样出现在报纸上。</summary>
/// <summary>
/// mod 新闻:不带价格修正的新闻事件,和原版新闻一样出现在报纸上。报纸按重要度排序、最多登 4 条,
/// 游戏自己的事件重要度多在 4–7,mod 新闻默认 5 才不会总被挤掉;剧情联动用 9 登头版。
/// </summary>
public static class News
{
public static void Show(string id, string title, string text, int days)
public static void Show(string id, string title, string text, int days, int importance = 5)
{
var mgr = StoreStation.Instance?.storeEventManager;
if (mgr == null || mgr.IsEventActive(id)) return;
@@ -318,7 +322,7 @@ namespace Decentralized
{
identifier = id, newsName = title, displayName = title, newsDescription = text,
duration = days, eventType = StoreEvent.EventType.COSMETIC, eventArea = StoreEvent.EventArea.ALL,
importance = 2, cooldown = 0, negociationDatas = new List<NegociationData>(),
importance = importance, cooldown = 0, negociationDatas = new List<NegociationData>(),
});
}
}