feat: jsc-mod-companion 情緒擴充為 8 維度並自動升級舊 PAD 存檔

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 07:53:56 +00:00
co-authored by Claude Sonnet 5.5
parent b47c838fd5
commit c24f768188
7 changed files with 367 additions and 39 deletions
+10 -1
View File
@@ -4,10 +4,11 @@
### `/jsc-mod-companion:status`
查看目前角色、心情、好感與待辦數量。
查看目前角色、心情、好感與待辦數量。情緒有 8 個維度(心情、精力、害羞、忌妒、想念、心跳、想家、不悅),預設列出前 3 強,`--all` 顯示完整數值(▰▱ 量表依維度上色);band 上的情緒名稱為目前最強的主情緒。
```text
/jsc-mod-companion:status
/jsc-mod-companion:status --all
```
### `/jsc-mod-companion:switch <角色>`
@@ -81,3 +82,11 @@
```text
/jsc-mod-companion:ingest chapter1.md 章節編號 1
```
## 情緒模型
- 8 維度各有基準與半衰期(心情 8h、精力 6h、害羞 2h、忌妒 4h、想念 12h、心跳 1h、想家 24h、不悅 4h,神經質 50 時),數值集中在 `hooks/companion/emotion.ts`。
- 晝夜節律:精力基準在本地 15 點最高、凌晨 3 點最低(±0.1,依 `tz` 設定)。
- 事件的情感注入、疲勞易怒(精力低於 0.3 時負面變化 ×1.5)、正向習慣化(重複 ×0.7ⁿ)、負向敏感化(重複最多 ×2),計次以 6 小時半衰期遺忘。
- 舊的 PAD 存檔讀檔時自動映射(p→心情、a→精力、d→害羞)並升級,不需重建。
- 與第 9 章的差異:晝夜節律振幅、習慣化係數等數值為本實作自訂,尚未逐項對照第 9 章。