From 1fbaba9ff1a0f16e429210e3db20f9740e0738dd Mon Sep 17 00:00:00 2001 From: bridge Date: Sun, 19 Oct 2025 15:26:37 +0800 Subject: [PATCH] add fortune and readme --- EN_README.md | 4 ++-- README.md | 4 ++-- src/classes/fortune.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/EN_README.md b/EN_README.md index ea2d6ad..3358949 100644 --- a/EN_README.md +++ b/EN_README.md @@ -70,7 +70,7 @@ If you like this project, consider starring it. You can also watch an intro vide - [ ] Attribute points allocation - [ ] Skill system (techniques) - [ ] Equipment system - - [ ] Artifacts system + - ✅ Artifacts - [ ] Skill learning - [ ] Learnable skills - [ ] Personal techniques (flexible integration) @@ -150,7 +150,7 @@ If you like this project, consider starring it. You can also watch an intro vide - [ ] Ancient history generation ### Specials -- [ ] Fortuitous encounters +- ✅ Fortuitous encounters - [ ] Paths/Daos - [ ] Possession & Rebirth - [ ] Formations diff --git a/README.md b/README.md index 5fa3bb7..61b2d45 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ - [ ] 属性点分配 - [ ] 技能系统(功法) - [ ] 装备系统 - - [ ] 法宝系统 + - ✅ 法宝 - [ ] 技能学习系统: - [ ] 可学习技能 - [ ] 个人技(灵活融入代码) @@ -152,7 +152,7 @@ - [ ] 上古历史生成 ### 特殊 -- [ ] 奇遇 +- ✅ 奇遇 - [ ] 道途 - [ ] 夺舍 & 重生 - [ ] 阵法 diff --git a/src/classes/fortune.py b/src/classes/fortune.py index b3c7ffb..e3d2ebb 100644 --- a/src/classes/fortune.py +++ b/src/classes/fortune.py @@ -107,10 +107,10 @@ def try_trigger_fortune(avatar: Avatar) -> list[Event]: avatar.technique = tech res_text = f"{avatar.name} 得到上品功法『{tech.name}』" - # 生成故事(仅给出主旨,留白由LLM发挥) + # 生成故事 event_text = f"{avatar.name} 遭遇奇遇({theme})" story_prompt = ( - f"主旨:{theme}。请据此自由发挥,写不超过120字的小故事,收束于获得之物。" + f"主旨:{theme}。请据此写100~150字小故事。" ) story = StoryTeller.tell_from_actors(event_text, res_text, avatar, prompt=story_prompt)