308 lines
9.0 KiB
JSON
308 lines
9.0 KiB
JSON
{
|
|
"AbilityMixins": [
|
|
{
|
|
"$type": "ActionsOnPropertyChangeMixin",
|
|
"DoInitialCheck": false,
|
|
"PropertyActions": [
|
|
{
|
|
"InstantPropertyChangeActions": [
|
|
{
|
|
"$type": "BranchOperator",
|
|
"Conditions": [
|
|
{
|
|
"$type": "ByAbilitySpecial",
|
|
"CompareType": "LessEqual",
|
|
"Param": "%AS_RequireSP",
|
|
"ParamName": "AS_SPChange",
|
|
"ParamType": "Float"
|
|
}
|
|
],
|
|
"SuccessActions": [
|
|
{
|
|
"$type": "SetAbilitySpecialByExpression",
|
|
"DoRefresh": true,
|
|
"Expression": "max(0,specials(AS_SPChange)\/specials(AS_RequireSP))",
|
|
"ParamName": "AS_SPChange_Mutiplier",
|
|
"Target": "Self",
|
|
"ValueType": "Integer"
|
|
},
|
|
{
|
|
"$type": "ApplyModifier",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"StackCount": "%AS_SPChange_Mutiplier",
|
|
"Target": "Self"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"IsSaveToSpecial": true,
|
|
"IsUsePercentage": false,
|
|
"NameSaveToSpecial": "AS_SPChange",
|
|
"PropertyType": "CurSP"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"AbilityName": "Weapon_Ability_14152",
|
|
"AbilitySpecials": {
|
|
"AS_AddedCriticalDelta": {
|
|
"Value": 0.1,
|
|
"ValueType": "Float"
|
|
},
|
|
"AS_Buff_Duration": {
|
|
"Value": 4,
|
|
"ValueType": "Float"
|
|
},
|
|
"AS_Buff_Duration_Remain": {
|
|
"Value": 4,
|
|
"ValueType": "Float"
|
|
},
|
|
"AS_Buff_Duration_Start": {
|
|
"Value": 12,
|
|
"ValueType": "Float"
|
|
},
|
|
"AS_Buff_MaxDuration": {
|
|
"Value": 24,
|
|
"ValueType": "Float"
|
|
},
|
|
"AS_DefenceRatio": {
|
|
"Value": -0.1,
|
|
"ValueType": "Float"
|
|
},
|
|
"AS_RequireSP": {
|
|
"Value": -20,
|
|
"ValueType": "Float"
|
|
},
|
|
"AS_SPChange": {
|
|
"Value": 0,
|
|
"ValueType": "Float"
|
|
},
|
|
"AS_SPChange_Mutiplier": {
|
|
"Value": 0,
|
|
"ValueType": "Integer"
|
|
}
|
|
},
|
|
"AbilityStacking": "Unique",
|
|
"DefaultModifier": {
|
|
"OnAdded": [
|
|
{
|
|
"$type": "ApplyModifier",
|
|
"ModifierName": "CritUpBuffModifier_Weapon_Ability_14152",
|
|
"Target": "Self"
|
|
}
|
|
],
|
|
"OnBattleEnter": [
|
|
{
|
|
"$type": "BranchOperator",
|
|
"Conditions": [
|
|
{
|
|
"$type": "ByHasModifier",
|
|
"ModifierNameList": [
|
|
"DmgUpBuffModifier_Weapon_Ability_14152"
|
|
]
|
|
}
|
|
],
|
|
"FailureActions": [
|
|
{
|
|
"$type": "ApplyModifier",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"Target": "Self"
|
|
},
|
|
{
|
|
"$type": "SetModifierDurationAction",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"ModifyType": "Replace",
|
|
"Value": "%AS_Buff_Duration_Start"
|
|
},
|
|
{
|
|
"$type": "BranchOperator",
|
|
"Conditions": [
|
|
{
|
|
"$type": "ByIsLocalAvatar",
|
|
"IsLocalAvatar": false
|
|
}
|
|
],
|
|
"SuccessActions": [
|
|
{
|
|
"$type": "SetAbilitySpecialByBuffRemainTimeAction",
|
|
"BuffID": 5141521,
|
|
"DoRefresh": true,
|
|
"ModifyFunction": "Replace",
|
|
"ParamName": "AS_Buff_Duration_Remain",
|
|
"Percentage": 1
|
|
},
|
|
{
|
|
"$type": "SetModifierDurationAction",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"ModifyType": "Replace",
|
|
"Value": -1
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SuccessActions": [
|
|
{
|
|
"$type": "BranchOperator",
|
|
"Conditions": [
|
|
{
|
|
"$type": "ByModifierDuration",
|
|
"CompareType": "NotEqual",
|
|
"CompareValue": -1,
|
|
"TargetModifier": "DmgUpBuffModifier_Weapon_Ability_14152"
|
|
}
|
|
],
|
|
"FailureActions": [
|
|
{
|
|
"$type": "SetAbilitySpecialAction",
|
|
"DoRefresh": true,
|
|
"ModifyFunction": "Add",
|
|
"Param": "%AS_Buff_Duration_Start",
|
|
"ParamName": "AS_Buff_Duration_Remain",
|
|
"ParamType": "Float",
|
|
"Target": "Self"
|
|
},
|
|
{
|
|
"$type": "SetAbilitySpecialAction",
|
|
"DoRefresh": true,
|
|
"ModifyFunction": "Replace",
|
|
"Param": "%AS_Buff_MaxDuration",
|
|
"ParamName": "AS_Buff_Duration_Remain",
|
|
"ParamType": "Float",
|
|
"Predicates": [
|
|
{
|
|
"$type": "ByAbilitySpecial",
|
|
"CompareType": "Greater",
|
|
"Param": "%AS_Buff_MaxDuration",
|
|
"ParamName": "AS_Buff_Duration_Remain",
|
|
"ParamType": "Float",
|
|
"Target": "Self"
|
|
}
|
|
],
|
|
"Target": "Self"
|
|
}
|
|
],
|
|
"SuccessActions": [
|
|
{
|
|
"$type": "SetModifierDurationAction",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"ModifyType": "Add",
|
|
"Value": "%AS_Buff_Duration_Start"
|
|
},
|
|
{
|
|
"$type": "SetModifierDurationAction",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"ModifyType": "Replace",
|
|
"Predicates": [
|
|
{
|
|
"$type": "ByModifierDuration",
|
|
"CompareType": "Greater",
|
|
"CompareValue": "%AS_Buff_MaxDuration",
|
|
"TargetModifier": "DmgUpBuffModifier_Weapon_Ability_14152"
|
|
}
|
|
],
|
|
"Value": "%AS_Buff_MaxDuration"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"Modifiers": {
|
|
"CritUpBuffModifier_Weapon_Ability_14152": {
|
|
"Duration": -1,
|
|
"ModifierStacking": "Unique",
|
|
"Properties": {
|
|
"Actor_CriticalDelta": "%AS_AddedCriticalDelta"
|
|
}
|
|
},
|
|
"DmgUpBuffModifier_Weapon_Ability_14152": {
|
|
"Buff": {
|
|
"BuffID": 5141521,
|
|
"IsOverrideDuration": true
|
|
},
|
|
"Duration": "%AS_Buff_Duration",
|
|
"ModifierStacking": "Prolong",
|
|
"OnHitOther": [
|
|
{
|
|
"$type": "ModifyAttackDataAction",
|
|
"Predicates": [
|
|
{
|
|
"$type": "ByDamageElementType",
|
|
"DamageElement": "Elec",
|
|
"Target": "Self"
|
|
}
|
|
],
|
|
"PropertyKey": "Actor_DefenceRatio",
|
|
"PropertyValue": "%AS_DefenceRatio",
|
|
"Target": "Other"
|
|
}
|
|
],
|
|
"OnRefresh": [
|
|
{
|
|
"$type": "SetAbilitySpecialByExpression",
|
|
"Expression": "min(specials(AS_Buff_Duration_Remain)+specials(AS_Buff_Duration), specials(AS_Buff_MaxDuration))",
|
|
"ParamName": "AS_Buff_Duration_Remain",
|
|
"Predicates": [
|
|
{
|
|
"$type": "ByModifierDuration",
|
|
"CompareType": "Equal",
|
|
"CompareValue": -1,
|
|
"TargetModifier": "DmgUpBuffModifier_Weapon_Ability_14152"
|
|
}
|
|
],
|
|
"ValueType": "Float"
|
|
},
|
|
{
|
|
"$type": "SetModifierDurationAction",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"ModifyType": "Replace",
|
|
"Predicates": [
|
|
{
|
|
"$type": "ByModifierDuration",
|
|
"CompareType": "Greater",
|
|
"CompareValue": "%AS_Buff_MaxDuration",
|
|
"TargetModifier": "DmgUpBuffModifier_Weapon_Ability_14152"
|
|
}
|
|
],
|
|
"Value": "%AS_Buff_MaxDuration"
|
|
}
|
|
],
|
|
"OnSwitchTriggered": [
|
|
{
|
|
"$type": "BranchOperator",
|
|
"Conditions": [
|
|
{
|
|
"$type": "ByIsLocalAvatar",
|
|
"IsLocalAvatar": true
|
|
}
|
|
],
|
|
"FailureActions": [
|
|
{
|
|
"$type": "SetAbilitySpecialByBuffRemainTimeAction",
|
|
"BuffID": 5141521,
|
|
"DoRefresh": true,
|
|
"ModifyFunction": "Replace",
|
|
"ParamName": "AS_Buff_Duration_Remain",
|
|
"Percentage": 1
|
|
},
|
|
{
|
|
"$type": "SetModifierDurationAction",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"ModifyType": "Replace",
|
|
"Value": -1
|
|
}
|
|
],
|
|
"SuccessActions": [
|
|
{
|
|
"$type": "SetModifierDurationAction",
|
|
"ModifierName": "DmgUpBuffModifier_Weapon_Ability_14152",
|
|
"ModifyType": "Replace",
|
|
"Value": "%AS_Buff_Duration_Remain"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |