feat: add shop engine with 3-tab support and artifact upgrades
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"id": "taoist_license",
|
||||
"name": "道碟",
|
||||
"tab": "item",
|
||||
"cost": 500,
|
||||
"unlockConditions": [
|
||||
{ "type": "age", "op": ">=", "value": 10 },
|
||||
{ "type": "or", "conditions": [
|
||||
{ "type": "identity", "value": "taoist_orphan" },
|
||||
{ "type": "worldFlag", "flag": "met_taoist_priest", "value": true }
|
||||
]}
|
||||
],
|
||||
"effects": [
|
||||
{ "type": "unlockCareer", "careerId": "taoist_priest" },
|
||||
{ "type": "setFlag", "flag": "has_taoist_license", "value": true }
|
||||
],
|
||||
"resetOnRebirth": true
|
||||
},
|
||||
{
|
||||
"id": "power_pill",
|
||||
"name": "大力丸",
|
||||
"tab": "item",
|
||||
"cost": 50,
|
||||
"unlockConditions": [],
|
||||
"effects": [
|
||||
{ "type": "addStat", "stat": "body", "value": 5 }
|
||||
],
|
||||
"resetOnRebirth": true
|
||||
}
|
||||
],
|
||||
"buffs": [
|
||||
{
|
||||
"id": "clever_brush",
|
||||
"name": "妙笔生花",
|
||||
"tab": "buff",
|
||||
"cost": 200,
|
||||
"unlockConditions": [],
|
||||
"effects": [
|
||||
{ "type": "addStat", "stat": "wisdom", "value": 10 }
|
||||
],
|
||||
"resetOnRebirth": true
|
||||
}
|
||||
],
|
||||
"artifacts": [
|
||||
{
|
||||
"id": "immortal_sword",
|
||||
"name": "仙剑",
|
||||
"tab": "artifact",
|
||||
"baseCost": 1000,
|
||||
"costGrowth": 1.5,
|
||||
"unlockConditions": [
|
||||
{ "type": "careerLevel", "careerId": "taoist_priest", "op": ">=", "value": 50 }
|
||||
],
|
||||
"effects": [
|
||||
{ "type": "addStat", "stat": "body", "value": 10 }
|
||||
],
|
||||
"resetOnRebirth": false,
|
||||
"maxLevel": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user