# 状态效果注册JSON
游戏内所有状态效果的配置文件,也为将来创意工坊Add-ons做铺垫
目录: Behavior/effets/*.json
格式示例
{
"misty:effect":{
"description": {
"identifier": "lucky",
"name": "幸运",
"effect_type": "good",
"level": 5
},
"components": {
"name": "atk",
"operation": "+",
"value": 10,
"seconds": 20.0
}
}
}
# description
| key | values | 说明 | 默认值 | 是否必须 |
|---|---|---|---|---|
| identifier | string | 物品的唯一标识符 | \ | 是 |
| name | string | 物品的默认格式化文本 | identifier | 否 |
| effect_type | effectType | 状态效果的类型 | normal | 否 |
| level | int | 定义状态效果的星级(1-5星) | 1 | 否 |
# components
| key | values | 说明 | 默认值 | 是否必须 |
|---|---|---|---|---|
| misty:name | 角色基础数值 | 玩家的基础数值 | \ | 是 |
| misty:operation | string(+, -, *, /, =) | 数值运算符 | \ | 是 |
| misty:value | int | float (具体参考角色基础数值对应的类型) | 数值 | \ | 是 |