{ //HP>75%时,sp恢复提高10%,且物理攻击造成的晕值提高15% "AbilityName":"Suit_Ability_50233400", "AbilityStacking":"Unique", "DefaultModifier": { "OnAdded": [ //开局添加效果 { "$type": "MoleMole.ApplyModifier", "ModifierName": "AddBuff", "Target":"Self", "Predicates": [ { "$type": "MoleMole.ByPlayerPropertyValue", "IsUsePercent" : true, "Numerator":"CurHP", "Denominator":"MaxHP", "CompareType": "Greater", "Val1" : "%HpPercentage", "Val2" : 0, "Target" : "Self" } ] }, ], "OnHitOtherPre": [ { "$type": "MoleMole.ModifyAttackDataAction", "Target" : "Self", "PropertyKey": "BreakStun_Ratio", "PropertyValue": "%BreakStunRatio", "Predicates": [ { "$type":"MoleMole.ByDamageElementType", "DamageElement":"Physics" }, { "$type": "MoleMole.ByPlayerPropertyValue", "IsUsePercent" : true, "Numerator":"CurHP", "Denominator":"MaxHP", "CompareType": "Greater", "Val1" : "%HpPercentage", "Val2" : 0, "Target" : "Self" } ] } ] }, "AbilityMixins" ://持续检测属性变化 [ { "$type": "MoleMole.ActionsOnPropertyChangeMixin", "PropertyActions": [ { "PropertyType": "CurHP", // "CustomPropertyType": "EnhanceNum", "ReferMaxPropertyType": "MaxHP", // "CustomReferMaxPropertyType": "MaxEnhanceNum", "IsUsePercentage": true, "ValueRangeActions": [ { "Val": "%HpPercentage", "LowToValueActions": [ { "$type": "MoleMole.ApplyModifier", "ModifierName": "AddBuff", "Target":"Self", }, ], }, { "Val": "%HpPercentage", "ValueToLowActions": [ { "$type": "MoleMole.RemoveModifier", "ModifierName": "AddBuff", "Target":"Self", }, ], }, ], }, ], }, ], "Modifiers": { "AddBuff": { "Properties": { "Actor_SPGetRatio":"%SPGetRatio", }, } }, "AbilitySpecials" : { "BreakStunRatio": { "Value": 0.15 }, "HpPercentage": { "Value": 0.75 }, "SPGetRatio": { "Value": 0.1 }, } }