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

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