{

    "AbilityName": "Battery_Default",

    "AbilityStacking": "Unique",



    "DefaultModifier": 

    {

        "OnAdded": 

        [

            {

                "$type": "MoleMole.ApplyModifier",

                "ModifierName": "BatteryHitListenerModifier_01",

                "Target": "Self"

            },

            {

                "$type": "MoleMole.AttachEffect",

                "EffectPattern": "Eff_Device_Battery_Idle",

                "Target": "Self",

                "AttachEffectPosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "Self",

                        "IsUseAttachPointPos" : true,

                        "IsUseAttachPointRotation" : true,

                    },

                    "Offset" : 

                    {

                        "PositionOffset" : {"x":0.0, "y":0.0, "z":0.0},

                        "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0},

                        "IsUseRotationY" : true,

                        "IsUseRotationXZ" : true,

                    }

                }

            }

        ]

    },



    "Modifiers": 

    {

        "BatteryHitListenerModifier_01": 

        {

            "ModifierStacking": "Unique",

            "Duration": -1,



            "OnBeingHit": 

            [

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BatteryBeHitModifier_01",

                    "Target": "Self",

                    "Predicates": 

                    [

                        {   

                            "$type" : "MoleMole.ByDistance",

                            "Distance" : 15,

                            "Target" : "Self",

                            "CompareType" : "LessEqual",

                            "CompareTarget" : "Target"

                        }

                    ]

                }

            ]

        },



        "BatteryHitListenerModifier_02": 

        {

            "ModifierStacking": "Unique",

            "Duration": -1,



            "OnBeingHit": 

            [

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BatteryBeHitModifier_02",

                    "Target": "Self",

                    "Predicates": 

                    [

                        {   

                            "$type" : "MoleMole.ByDistance",

                            "Distance" : 15,

                            "Target" : "Self",

                            "CompareType" : "LessEqual",

                            "CompareTarget" : "Target"

                        }

                    ]

                }

            ]

        },



        "BatteryHitListenerModifier_03": 

        {

            "ModifierStacking": "Unique",

            "Duration": -1,



            "OnBeingHit": 

            [

                {

                    "$type": "MoleMole.ApplyModifier",

                    "ModifierName": "BatteryBeHitModifier_03",

                    "Target": "Self",

                    "Predicates": 

                    [

                        {   

                            "$type" : "MoleMole.ByDistance",

                            "Distance" : 15,

                            "Target" : "Self",

                            "CompareType" : "LessEqual",

                            "CompareTarget" : "Target"

                        }

                    ]

                }

            ]

        },



        "BatteryBeHitModifier_01": 

        {

            "ModifierStacking": "Unique",

            "Duration": 1.0,



            "OnAdded": 

            [

                //播放受击特效

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Battery_OnHit",

                    "Target": "Self",

                },

                //触发状态机参数

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 1,

                    "ParamName" : "Trigger_Hit_Battery_01",

                    "Target" : "Self",

                    "BoolVal" : true,

                }

            ],



            "DelayHandlers" :

            [

                {

                    "DelayTime" : 0.25,

                    "TimeUpActions":

                    [

                        {

                            "$type": "MoleMole.ApplyModifier",

                            "ModifierName": "BatteryHitListenerModifier_02",

                            "Target": "Self",

                        }

                    ]

                },

            ],

        },



        "BatteryBeHitModifier_02": 

        {

            "ModifierStacking": "Unique",

            "Duration": 1.0,



            "OnAdded": 

            [

                //播放受击特效

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Battery_OnHit",

                    "Target": "Self",

                },

                //触发状态机参数

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 1,

                    "ParamName" : "Trigger_Hit_Battery_02",

                    "Target" : "Self",

                    "BoolVal" : true,

                }

            ],



            "DelayHandlers" :

            [

                {

                    "DelayTime" : 0.25,

                    "TimeUpActions":

                    [

                        {

                            "$type": "MoleMole.ApplyModifier",

                            "ModifierName": "BatteryHitListenerModifier_03",

                            "Target": "Self",

                        }

                    ]

                },

            ],

        },



        "BatteryBeHitModifier_03": 

        {

            "ModifierStacking": "Unique",

            "Duration": 0.5,



            "OnAdded": 

            [

                //播放受击特效

                {

                    "$type": "MoleMole.FireEffect",

                    "EffectPattern": "Eff_Device_Battery_OnHit",

                    "Target": "Self",

                },

                //触发状态机参数

                {

                    "$type" : "MoleMole.SetAnimCtrlerParamAction",

                    "ParamType" : 1,

                    "ParamName" : "Trigger_Hit_Battery_03",

                    "Target" : "Self",

                    "BoolVal" : true,

                }

            ]

        }

    }

}