add fortune and readme

This commit is contained in:
bridge
2025-10-19 15:26:37 +08:00
parent af282ad206
commit 1fbaba9ff1
3 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -72,7 +72,7 @@
- [ ] 属性点分配
- [ ] 技能系统(功法)
- [ ] 装备系统
- [ ] 法宝系统
- 法宝
- [ ] 技能学习系统:
- [ ] 可学习技能
- [ ] 个人技(灵活融入代码)
@@ -152,7 +152,7 @@
- [ ] 上古历史生成
### 特殊
- [ ] 奇遇
- 奇遇
- [ ] 道途
- [ ] 夺舍 & 重生
- [ ] 阵法

View File

@@ -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)