{ "AbilityName": "Zhenzhen_EnemySpaceDamageRatio", "AbilitySpecials": { "AS_BaseStunDamageRatio": { "Value": 0, "ValueType": "Float" }, "AS_FinalSpaceDamageRatio_Temp": { "Value": 0, "ValueType": "Float" }, "AS_MaxSpaceDamageRatio": { "Value": 0, "ValueType": "Float" }, "AS_MaxSpaceDamageRatio_Real": { "Value": 0, "ValueType": "Float" }, "AS_MaxStack": { "Value": 1, "ValueType": "Integer" } }, "AbilityStacking": "Unique", "DefaultModifier": { "OnAdded": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "Param": 3, "ParamName": "AS_MaxStack", "ParamType": "Integer", "Predicates": [ { "$type": "ByIsMultiplayerMode" } ], "Target": "Self" } ], "OnCustomEventReceived": [ { "$type": "BranchOperator", "Conditions": [ { "$type": "ByCustomEvent", "EventKey": "Zhenzhen_Enemy_SpaceDamageRatio_Apply" } ], "SuccessActions": [ { "$type": "GetStunDamageTakeRatio", "ParamName": "AS_BaseStunDamageRatio" }, { "$type": "SetAbilitySpecialByExpression", "DoRefresh": true, "Expression": "max(0,min(specials(AS_MaxSpaceDamageRatio),specials(AS_BaseStunDamageRatio)+actorProperty(Actor_StunDamageTakeRatio)))", "MpExecMode": "NotExecuted", "ParamName": "AS_FinalSpaceDamageRatio_Temp", "ValueType": "Float" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Replace", "MpExecMode": "MpDefault", "Param": "%AS_MaxSpaceDamageRatio", "ParamName": "AS_MaxSpaceDamageRatio_Real", "ParamType": "Float", "Predicates": [ { "$type": "ByAbilitySpecial", "CompareType": "LessEqual", "Param": "%AS_MaxSpaceDamageRatio", "ParamName": "AS_MaxSpaceDamageRatio_Real", "ParamType": "Float", "Target": "Self" } ] }, { "$type": "SetAbilitySpecialByExpression", "DoRefresh": true, "Expression": "max(0,min(specials(AS_MaxSpaceDamageRatio_Real),specials(AS_BaseStunDamageRatio)+actorProperty(Actor_StunDamageTakeRatio)))", "MpExecMode": "MpDefault", "ParamName": "AS_FinalSpaceDamageRatio_Temp", "ValueType": "Float" }, { "$type": "ApplyModifier", "ModifierName": "ApplySpaceDamageRatioModifier" } ] }, { "$type": "RemoveModifier", "ModifierName": "ApplySpaceDamageRatioModifier", "Predicates": [ { "$type": "ByCustomEvent", "EventKey": "Zhenzhen_Enemy_SpaceDamageRatio_Remove" } ], "StackCount": 1 } ] }, "Modifiers": { "ApplySpaceDamageRatioModifier": { "Duration": -1, "IgnoreTimeScale": false, "MaxStackingNumber": "%AS_MaxStack", "ModifierStacking": "Multiple", "OnAdded": [ { "$type": "ApplyModifier", "ModifierName": "SpaceDamageRatioModifier" } ], "OnRemoved": [ { "$type": "RemoveModifier", "ModifierName": "SpaceDamageRatioModifier", "Predicates": [ { "$type": "ByModifierStackCount", "CompareType": "LessEqual", "ModifierName": "ApplySpaceDamageRatioModifier", "StackCount": 1 } ] } ] }, "SpaceDamageRatioModifier": { "Duration": -1, "IgnoreTimeScale": false, "ModifierStacking": "Replace", "Properties": { "Actor_SpaceDamageRatio": "%AS_FinalSpaceDamageRatio_Temp" } } }, "OnAbilityStart": [ ] }