{ "AbilityName": "Activity_Pinball_AddFever", "AbilitySpecials": { "AS_FeverAddCD": { "Value": 0.1 }, "AS_FeverAdd_Base": { "Value": 10 }, "AS_FeverItemRecover": { "Value": 0 }, "AS_FeverNormalized": { "Value": 0 } }, "AbilityStacking": "Unique", "DefaultModifier": { "OnCustomEventReceived": [ { "$type": "ApplyModifier", "ModifierName": "Pinball_FeverItemRecover", "Predicates": [ { "$type": "ByCustomEvent", "EventKey": "Activity_Pinball_FeverItem_Recover" }, { "$type": "ByPlayerPropertyValue", "CompareType": "Equal", "CustomNumerator": "Pinball_FeverActive", "IsUsePercent": false, "Numerator": "Custom", "Target": "Self", "Val1": 0 } ], "Target": "Self" } ] }, "Modifiers": { "Pinball_FeverItemRecover": { "Duration": 0.1, "ModifierStacking": "Unique", "OnAdded": [ { "$type": "ModifyProperty", "Amount": "%AS_FeverItemRecover", "CustomPropertyType": "Pinball_Fever", "PropertyModifyFunction": "Add", "PropertyType": "Custom", "Target": "Self" }, { "$type": "ApplyAbilityAction", "AbilityID": 799900357, "IsAutoTrigger": true, "Predicates": [ { "$type": "ByPlayerPropertyValue", "CompareType": "GreaterEqual", "CustomDenominator": "Pinball_MaxFever", "CustomNumerator": "Pinball_Fever", "Denominator": "Custom", "IsUsePercent": true, "Numerator": "Custom", "Target": "Self", "Val1": 1 }, { "$type": "ByPlayerPropertyValue", "CompareType": "Equal", "CustomNumerator": "Pinball_FeverActive", "IsUsePercent": false, "Numerator": "Custom", "Target": "Self", "Val1": 0 } ], "Target": "Self" }, { "$type": "SetAbilitySpecialByExpression", "Expression": "min(property(Pinball_Fever)\/max(property(Pinball_MaxFever),1),1)", "ParamName": "AS_FeverNormalized", "Target": "Self", "ValueType": "Float" }, { "$type": "SendEventToViewObjectAction", "EventName": "Activity_Pinball_Fever_Changed_Global", "IsAvatarGlobalEvent": true, "Target": "Self" }, { "$type": "SendEventToViewObjectAction", "EventName": "Activity_Pinball_Crowd_Pickup_Global", "IsAvatarGlobalEvent": true, "Target": "Self" } ] }, "Pinball_FeverRecoverCD": { "Duration": "%AS_FeverAddCD", "ModifierStacking": "Unique", "OnAdded": [ { "$type": "ModifyProperty", "Amount": "%AS_FeverAdd_Base", "CustomPropertyType": "Pinball_Fever", "Predicates": [ { "$type": "ByPlayerPropertyValue", "CompareType": "Equal", "CustomNumerator": "Pinball_FeverActive", "IsUsePercent": false, "Numerator": "Custom", "Target": "LocalAvatar", "Val1": 0 } ], "PropertyModifyFunction": "Add", "PropertyType": "Custom", "Target": "LocalAvatar" }, { "$type": "ApplyAbilityAction", "AbilityID": 799900357, "IsAutoTrigger": true, "Predicates": [ { "$type": "ByPlayerPropertyValue", "CompareType": "GreaterEqual", "CustomDenominator": "Pinball_MaxFever", "CustomNumerator": "Pinball_Fever", "Denominator": "Custom", "IsUsePercent": true, "Numerator": "Custom", "Target": "LocalAvatar", "Val1": 1 }, { "$type": "ByPlayerPropertyValue", "CompareType": "Equal", "CustomNumerator": "Pinball_FeverActive", "IsUsePercent": false, "Numerator": "Custom", "Target": "LocalAvatar", "Val1": 0 } ], "Target": "LocalAvatar" }, { "$type": "SetAbilitySpecialByExpression", "Expression": "min(property(Pinball_Fever)\/max(property(Pinball_MaxFever),1),1)", "ParamName": "AS_FeverNormalized", "Target": "LocalAvatar", "ValueType": "Float" }, { "$type": "SendEventToViewObjectAction", "EventName": "Activity_Pinball_Fever_Changed_Global", "IsAvatarGlobalEvent": true, "Target": "Self" } ] } }, "OnAbilityTrigger": [ { "$type": "ApplyModifier", "ModifierName": "Pinball_FeverRecoverCD", "Predicates": [ { "$type": "ByPlayerPropertyValue", "CompareType": "Equal", "CustomNumerator": "Pinball_FeverActive", "IsUsePercent": false, "Numerator": "Custom", "Target": "LocalAvatar", "Val1": 0 }, { "$type": "ByHasModifier", "ModifierNameList": [ "Pinball_FeverRecoverCD" ], "OperatorType": "Not", "Target": "LocalAvatar" } ], "Target": "LocalAvatar" } ] }