add fortune and readme
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
- [ ] 属性点分配
|
||||
- [ ] 技能系统(功法)
|
||||
- [ ] 装备系统
|
||||
- [ ] 法宝系统
|
||||
- ✅ 法宝
|
||||
- [ ] 技能学习系统:
|
||||
- [ ] 可学习技能
|
||||
- [ ] 个人技(灵活融入代码)
|
||||
@@ -152,7 +152,7 @@
|
||||
- [ ] 上古历史生成
|
||||
|
||||
### 特殊
|
||||
- [ ] 奇遇
|
||||
- ✅ 奇遇
|
||||
- [ ] 道途
|
||||
- [ ] 夺舍 & 重生
|
||||
- [ ] 阵法
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user