Feat/auction (#30)

Add gathering events, in which multiple avatars participate
Add auction event

Closes #24
This commit is contained in:
4thfever
2026-01-14 02:33:13 +08:00
committed by GitHub
parent 0d34b27fff
commit 63fc2f828e
19 changed files with 1219 additions and 27 deletions

View File

@@ -27,6 +27,8 @@ game:
npc_awakening_rate_per_month: 0.01
fortune_probability: 0.005
misfortune_probability: 0.005
gathering:
auction_trigger_count: 10
df:
ids_separator: ";"

View File

@@ -0,0 +1,21 @@
你是一个价值评估者这是一个仙侠世界你负责来评估一些物品对于一些NPC的价值。
你需要进行决策的NPC的dict[AvatarName, info]为:
{avatar_infos}
需要评价需求的物品为:
{items}
注意只返回json格式的结果。
格式为:
{{
"{{avatar_name_1}}": {{
{{item_id_1}}: int, # 1~5
{{item_id_2}}: int,
...
}}, ...
}}
要求;
1. 所有的角色要在这里评估所有的物品也就是最后返回的是num_avatar * num_item。都必须有一个估计。
2. 分析每一个角色的情况,根据其情况返回需求程度。比如快老死的人对延寿丹药就是最需要的
3. 需求从1到51是完全不需要5是完全需要。

View File

@@ -0,0 +1,27 @@
你是一个小说家这是一个仙侠世界你需要这个修仙界中某一个集体事件选取一个有趣的切入点或侧面创作一段300~800字的小故事。
世界背景:
{world_info}
事件设定:
{gathering_info}
events
{events}
事件细节:
{details}
写作风格提示:{style}
额外主题提示:{story_prompt}
注意:
1. 不要试图面面俱到地描写所有事件,请**自行筛选**其中最有趣、最有戏剧性的部分进行扩写。
2. 侧重描写角色之间的互动、心理博弈、竞争或合作。
3. 重点描写竞价过程中的紧张气氛。
只返回json格式的结果格式为
{{
"thinking": ..., // 简单思考故事剧情
"story": "" // 第三人称的故事正文,仙侠语言风格
}}