From a59a4bbe1ab45adb29d1367995230d3f09847d9b Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Tue, 29 Sep 2026 00:24:08 +0800 Subject: p55: 当日任务经济闭环——设计口径物品报酬入账(夜捕鱼×2/送粮食物×1, 其余不发) + 连续完成天数(streak 跨日保留/漏完成清零) + v3 streak 尾段与 save(None) 兼容 + LV_P55_SHOT 证据 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LivingVillage.Desktop/WorldBootstrap.fs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/LivingVillage.Desktop/WorldBootstrap.fs') diff --git a/src/LivingVillage.Desktop/WorldBootstrap.fs b/src/LivingVillage.Desktop/WorldBootstrap.fs index 7be24a7..e75855f 100644 --- a/src/LivingVillage.Desktop/WorldBootstrap.fs +++ b/src/LivingVillage.Desktop/WorldBootstrap.fs @@ -25,15 +25,9 @@ module WorldBootstrap = Today = Occupation.dailyTaskOf seed (Occupation.occupationSeedOf kind) (Occupation.dayIndexOf nowTick) kind } /// 跨日刷新当日任务;同日(含 Done/Failed 终态)原样保留。 + /// P55:经 Kernel `refreshState`,跨日时按上一日是否已完成保留/清零连续天数。 let refreshOccupationToday (seed: uint64) (state: Occupation.State) (nowTick: int64) : Occupation.State = - { state with - Today = - Occupation.refreshToday - seed - (Occupation.occupationSeedOf state.Profile.Kind) - state.Profile.Kind - nowTick - state.Today } + Occupation.refreshState seed (Occupation.occupationSeedOf state.Profile.Kind) state.Profile.Kind nowTick state /// 开局身份年鉴(design §3):带职业建世界后写入一条 `StoryAnnal`「以…为生」, /// 形成个人传记线。Game 与测试共用同一口径。 -- cgit v1.2.3