feat: add career engine with unlock, income, exp, level-up

This commit is contained in:
2026-05-13 03:35:02 +00:00
parent c78e4bba0b
commit a063f51b20
3 changed files with 406 additions and 0 deletions
+111
View File
@@ -0,0 +1,111 @@
{
"careers": [
{
"id": "student",
"name": "学童",
"type": "scholar",
"unlockConditions": {
"type": "age",
"op": ">=",
"value": 6
},
"dailyIncome": 1,
"expCurve": {
"base": 10,
"factor": 1.15
}
},
{
"id": "book_boy",
"name": "书童",
"type": "scholar",
"unlockConditions": {
"type": "careerLevel",
"op": ">=",
"careerId": "student",
"value": 100
},
"dailyIncome": 2,
"expCurve": {
"base": 50,
"factor": 1.2
}
},
{
"id": "scholar",
"name": "书生",
"type": "scholar",
"unlockConditions": {
"type": "and",
"conditions": [
{
"type": "careerLevel",
"op": ">=",
"careerId": "student",
"value": 250
},
{
"type": "age",
"op": ">=",
"value": 14
}
]
},
"dailyIncome": -3,
"expCurve": {
"base": 100,
"factor": 1.25
}
},
{
"id": "soldier",
"name": "士兵",
"type": "military",
"unlockConditions": {
"type": "and",
"conditions": [
{
"type": "age",
"op": ">=",
"value": 14
},
{
"type": "stat",
"op": ">=",
"stat": "body",
"value": 10
}
]
},
"dailyIncome": 2,
"expCurve": {
"base": 20,
"factor": 1.18
}
},
{
"id": "taoist_priest",
"name": "道士",
"type": "immortal",
"unlockConditions": {
"type": "and",
"conditions": [
{
"type": "age",
"op": ">=",
"value": 10
},
{
"type": "hasItem",
"itemId": "taoist_license"
}
]
},
"dailyIncome": 1,
"expCurve": {
"base": 30,
"factor": 1.22
}
}
]
}