From cd04cf662564f9224ebd335c2f7edc82a0fa53e6 Mon Sep 17 00:00:00 2001 From: congsh <2452821485@qq.com> Date: Wed, 13 May 2026 04:26:39 +0000 Subject: [PATCH] feat: add identity and talent config frameworks --- src/config/identities.json | 40 +++++++++++++++++++++++ src/config/talents.json | 65 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 src/config/identities.json create mode 100644 src/config/talents.json diff --git a/src/config/identities.json b/src/config/identities.json new file mode 100644 index 0000000..811c7a2 --- /dev/null +++ b/src/config/identities.json @@ -0,0 +1,40 @@ +{ + "identities": [ + { + "id": "taoist_orphan", + "name": "道观弃婴", + "description": "被遗弃在道观门口的婴儿,由道士抚养长大。开局自带道碟。", + "startingStats": { "body": 3, "wisdom": 5, "charm": 2, "destiny": 4, "business": 0, "intelligence": 3 }, + "startingItems": ["taoist_license"], + "unlockConditions": [] + }, + { + "id": "peasant", + "name": "农家子", + "description": "普通农户家的孩子。", + "startingStats": { "body": 4, "wisdom": 3, "charm": 3, "destiny": 3, "business": 1, "intelligence": 2 }, + "startingItems": [], + "unlockConditions": [] + }, + { + "id": "merchant_son", + "name": "商贾之子", + "description": "商人家庭出身,从小耳濡目染经商之道。", + "startingStats": { "body": 2, "wisdom": 4, "charm": 4, "destiny": 3, "business": 5, "intelligence": 4 }, + "startingItems": [], + "unlockConditions": [ + { "type": "reincarnation", "op": ">=", "value": 1 } + ] + }, + { + "id": "noble", + "name": "世家子弟", + "description": "出身名门望族,从小接受良好教育。", + "startingStats": { "body": 3, "wisdom": 5, "charm": 5, "destiny": 5, "business": 3, "intelligence": 5 }, + "startingItems": [], + "unlockConditions": [ + { "type": "reincarnation", "op": ">=", "value": 2 } + ] + } + ] +} diff --git a/src/config/talents.json b/src/config/talents.json new file mode 100644 index 0000000..d14ee12 --- /dev/null +++ b/src/config/talents.json @@ -0,0 +1,65 @@ +{ + "talents": [ + { + "id": "sword_bone", + "name": "剑骨", + "type": "talent", + "description": "天生剑骨,军事职业经验+20%", + "effects": [ + { "type": "addStat", "stat": "body", "value": 5 } + ], + "unlockConditions": [ + { "type": "careerLevel", "careerId": "soldier", "op": ">=", "value": 100 } + ] + }, + { + "id": "spirit_root", + "name": "灵根", + "type": "talent", + "description": "身怀灵根,修仙职业经验+20%", + "effects": [ + { "type": "addStat", "stat": "wisdom", "value": 5 } + ], + "unlockConditions": [ + { "type": "careerLevel", "careerId": "taoist_priest", "op": ">=", "value": 100 } + ] + }, + { + "id": "eidetic_memory", + "name": "过目不忘", + "type": "talent", + "description": "记忆力超群,书生职业经验+20%", + "effects": [ + { "type": "addStat", "stat": "wisdom", "value": 3 }, + { "type": "addStat", "stat": "intelligence", "value": 3 } + ], + "unlockConditions": [ + { "type": "careerLevel", "careerId": "student", "op": ">=", "value": 200 } + ] + }, + { + "id": "lucky_star", + "name": "福星高照", + "type": "talent", + "description": "天生好运,事件收益+20%", + "effects": [ + { "type": "addStat", "stat": "destiny", "value": 5 } + ], + "unlockConditions": [ + { "type": "stat", "stat": "destiny", "op": ">=", "value": 30 } + ] + }, + { + "id": "business_genius", + "name": "经商奇才", + "type": "talent", + "description": "商业嗅觉敏锐,银两收入+20%", + "effects": [ + { "type": "addStat", "stat": "business", "value": 5 } + ], + "unlockConditions": [ + { "type": "stat", "stat": "business", "op": ">=", "value": 30 } + ] + } + ] +}