Files
hk4e-go/gdconf/game_data_config/json/ability/Temp/ConfigAbility_FireGadget.json
T
2022-11-30 00:00:20 +08:00

628 lines
12 KiB
Go

[
/////////////////////////////////////////////////////////
//
// 吊灯
//
/////////////////////////////////////////////////////////
{
"Default":
{
"$type": "ConfigAbility",
"abilityName": "DropLight_Interact",
"abilityMixins":
[
{
"$type": "AttachToGadgetStateMutexMixin",
"gadgetStates": [0, 201],
"modifierNames": [["Fire_Off"], ["Fire_On"]],
},
],
"modifiers":
{
"Trigger_Bullet":
{
"onAdded":
[
{
"$type": "AttachEffect",
"effectPattern": "Eff_SceneObj_WoodenObject_Broken",
"born":
{
"$type": "ConfigBornByAttachPoint",
"attachPointName": "EffectPoint",
},
},
{
"$type": "TriggerBullet",
"bulletID": 70950002,
"born":
{
"$type": "ConfigBornByAttachPoint",
"attachPointName": "ShootPoint",
},
},
{
"$type": "KillSelf",
},
],
},
"Trigger_Bullet02":
{
"onAdded":
[
{
"$type": "AttachEffect",
"effectPattern": "Eff_SceneObj_WoodenObject_Broken",
"born":
{
"$type": "ConfigBornByAttachPoint",
"attachPointName": "EffectPoint",
},
},
{
"$type": "TriggerBullet",
"bulletID": 70950003,
"born":
{
"$type": "ConfigBornByAttachPoint",
"attachPointName": "ShootPoint",
},
},
{
"$type": "KillSelf",
},
],
},
"Fire_Off":
{
"elementType": "Wood",
"elementDurability": 1,
"onBeingHit":
[
/*{
"$type": "ExecuteGroupTrigger",
"sourceName": "FireSourceChange",
"param1": 1,
"predicates":
[
{
"$type": "ByHitBoxName",
"hitBoxNames": ["LightHitbox"],
},
{
"$type": "ByHitElement",
"element": "Fire",
},
{
"$type": "ByNot",
"predicates":
[
{
"$type": "ByHasElement",
"element": "Water",
},
{
"$type": "ByHasElement",
"element": "Ice",
},
],
}
],
},*/
{
"$type": "AttachModifier",
"modifierName": "Trigger_Bullet02",
"predicates":
[
{
"$type": "ByHitBoxName",
"hitBoxNames": ["RopeHitbox"],
},
],
},
],
},
"Fire_On":
{
"elementType": "Fire",
"elementDurability": 1,
"onAdded":
[
{
"$type": "AttachModifier",
"modifierName": "Burning",
},
],
"onBeingHit":
[
{
"$type": "RemoveModifier",
"modifierName": "Burning",
"predicates":
[
{
"$type": "ByHitBoxName",
"hitBoxNames": ["LightHitBox"],
},
{
"$type": "ByHitElement",
"element": "Wind",
},
],
},
{
"$type": "AttachModifier",
"modifierName": "Trigger_Bullet",
"predicates":
[
{
"$type": "ByHitBoxName",
"hitBoxNames": ["RopeHitbox"],
},
],
},
],
"onRemoved":
[
{
"$type": "RemoveModifier",
"modifierName": "Burning",
},
],
},
"Burning":
{
"elementType": "Fire",
"elementDurability": 15,
"onAdded":
[
{
"$type":"AttachEffect",
"effectPattern": "Eff_SceneObj_FireBasin_01",
},
],
"onRemoved":
[
/*{
"$type": "ExecuteGroupTrigger",
"sourceName": "FireSourceChange",
"param1": 0,
},*/
],
},
},
},
},
/////////////////////////////////////////////////////////
//
// 吊灯-bullet
//
/////////////////////////////////////////////////////////
{
"Default":
{
"$type": "ConfigAbility",
"abilityName": "DropLight_Bullet",
"onAdded":
[
{
"$type": "AttachModifier",
"modifierName": "DropLight_Bullet",
},
],
"modifiers":
{
"DropLight_Bullet":
{
"thinkInterval": 0.05,
"onThinkInterval":
[
{
"$type": "FireEffect",
"effectPattern": "Eff_SceneObj_BombBarrel_01_Explode",
},
],
},
},
},
},
{
"Default":
{
"$type": "ConfigAbility",
"abilityName": "DropLight_Crash",
"onAbilityStart":
[
{
"$type": "AttachModifier",
"modifierName": "DropLight_Crash",
},
],
"modifiers":
{
"DropLight_Crash":
{
"onAdded":
[
{
"$type": "ApplyModifier",
"target": "Owner",
"modifierName": "UnlockIntee",
},
{
"$type": "FireEffect",
"effectPattern": "Eff_SceneObj_BombBarrel_01_Explode",
},
{
"$type" : "TriggerAttackEvent",
"targetType" : "All",
"attackEvent":
{
"attackPattern" :
{
"$type" : "ConfigAttackSphere",
"triggerType" : "TriggerNoRepeat",
"radius" : 2,
"born":
{
"$type": "ConfigBornBySelf",
},
},
"attackInfo":
{
"attackProperty":
{
"damagePercentage": 1.0,
"elementType": "Fire",
"elementDurability": 20,
"strikeType": "Default",
"enBreak": 200,
},
"hitPattern" :
{
"hitImpulseType":"LV6",
"overrideHitImpulse":
{
"hitLevel" : "Air",
"hitImpulseX" : 700,
"hitImpulseY" : 400,
},
"reboundRatio" : 0,
"hitHaltTime" : 0.0,
"hitHaltTimeScale" : 0.05,
"muteHitText" : false,
},
}
},
},
{
"$type": "KillSelf",
},
],
},
"UnlockIntee":
{
"onAdded":
[
{
"$type": "EnableGadgetIntee",
"enable": true,
},
{
"$type": "ExecuteGadgetLua",
"param1": 1,
},
],
},
},
},
},
{
"Default":
{
"$type": "ConfigAbility",
"abilityName": "DropLight_Crash02",
"onAbilityStart":
[
{
"$type": "AttachModifier",
"modifierName": "DropLight_Crash",
},
],
"modifiers":
{
"DropLight_Crash":
{
"onAdded":
[
{
"$type": "FireEffect",
"effectPattern": "Eff_SceneObj_WoodenObject_Broken",
"born":
{
"$type": "ConfigBornByTarget",
},
},
{
"$type" : "TriggerAttackEvent",
"targetType" : "All",
"attackEvent":
{
"attackPattern" :
{
"$type" : "ConfigAttackSphere",
"triggerType" : "TriggerNoRepeat",
"radius" : 0.5,
"born":
{
"$type": "ConfigBornBySelf",
},
},
"attackInfo":
{
"attackProperty":
{
"damagePercentage": 1.0,
"elementType": "Fire",
"elementDurability": 20,
"strikeType": "Default",
"enBreak": 200,
},
"hitPattern" :
{
"hitImpulseType":"LV6",
"overrideHitImpulse":
{
"hitLevel" : "Air",
"hitImpulseX" : 700,
"hitImpulseY" : 400,
},
"reboundRatio" : 0,
"hitHaltTime" : 0.0,
"hitHaltTimeScale" : 0.05,
"muteHitText" : false,
},
}
},
},
{
"$type": "KillSelf",
},
],
},
},
},
},
/////////////////////////////////////////////////////////
//
//重力水机关
//
/////////////////////////////////////////////////////////
{
"Default":
{
"$type": "ConfigAbility",
"abilityName": "GearWater_Interact",
"abilityMixins":
[
{
"$type": "AttachToGadgetStateMixin",
"gadgetState": 0,
"modifierName": "Switch_Close",
},
{
"$type": "AttachToGadgetStateMixin",
"gadgetState": 201,
"modifierName": "Swtich_Open",
},
],
"onAdded":
[
{
"$type": "AddGlobalValue",
"key": "_FIRE_GADGET_ATTACK",
"value": 0,
"useLimitRange": true,
"maxValue": 1,
"minValue": -1,
},
],
"onFieldEnter":
[
{
"$type": "AddGlobalValue",
"key": "_FIRE_GADGET_ATTACK",
"value": 2,
"useLimitRange": true,
"maxValue": 1,
"minValue": -1,
},
],
"onFieldExit":
[
{
"$type": "AddGlobalValue",
"key": "_FIRE_GADGET_ATTACK",
"value": -2,
"useLimitRange": true,
"maxValue": 1,
"minValue": -1,
},
],
"modifiers":
{
"Switch_Close":
{
"elementType": "Wood",
"elementDurability": 1,
"onBeingHit":
[
/*{
"$type": "ExecuteGroupTrigger",
"sourceName": "SwithcDisable",
"param1": 0,
"predicates":
[
{
"$type": "ByHitElement",
"element": "Water",
},
],
},*/
],
"onFieldEnter":
[
{
"$type": "AddGlobalValue",
"key": "_FIRE_GADGET_ATTACK",
"value": 2,
"useLimitRange": true,
"maxValue": 1,
"minValue": -1,
},
/*{
"$type": "ExecuteGroupTrigger",
"sourceName": "DoorControlTmp",
"param1": 1,
},*/
],
"onFieldExit":
[
{
"$type": "AddGlobalValue",
"key": "_FIRE_GADGET_ATTACK",
"value": -2,
"useLimitRange": true,
"maxValue": 1,
"minValue": -1,
},
/*{
"$type": "ExecuteGroupTrigger",
"sourceName": "DoorControlTmp",
"param1": 0,
},*/
],
},
"Swtich_Open":
{
"elementType": "Water",
"elementDurability": 1,
"onAdded":
[
{
"$type": "AttachModifier",
"modifierName": "Burning",
},
],
"onBeingHit":
[
{
"$type": "RemoveModifier",
"modifierName": "Burning",
"predicates":
[
{
"$type": "ByHitElement",
"element": "Fire",
},
],
},
],
"onRemoved":
[
{
"$type": "RemoveModifier",
"modifierName": "Burning",
},
],
},
"Burning":
{
"elementType": "Fire",
"elementDurability": 15,
"onAdded":
[
{
"$type":"AttachEffect",
"effectPattern": "Eff_SceneObj_FireBasin_01",
},
],
"thinkInterval": 1.0,
"onThinkInterval":
[
{
"$type": "TriggerAttackEvent",
"predicates":
[
{
"$type": "ByTargetGlobalValue",
"key": "_FIRE_GADGET_ATTACK",
"value": 1,
"compareType": "Equal",
},
],
"targetType": "All",
"doOffStage" : true,
"attackEvent":
{
"attackPattern":
{
"$type" : "ConfigAttackBox",
"triggerType" : "TriggerNoRepeat",
"checkHitLayerType" : "Both",
"born" :
{
"$type": "ConfigBornByAttachPoint",
"attachPointName": "attachPoint",
"offset":
{
"z": -0.5
},
},
"size" :
{
"x" : 1.0,
"y" : 1.0,
"z" : 1.0,
},
"muteHitBehindScene" : false,
},
"attackInfo":
{
"attackProperty":
{
"damagePercentage": 1,
"elementType": "Fire",
"elementDurability": 100,
"strikeType": "Default",
},
"hitPattern":
{
"onHitEffectName": "none",
"hitImpulseType":"LV1",
"reboundRatio": 0,
"hitHaltTime": 0.0,
"hitHaltTimeScale" : 0.5,
"muteHitText": false,
},
},
},
},
],
"onRemoved":
[
/*{
"$type": "ExecuteGroupTrigger",
"sourceName": "SwithcDisable",
"param1": 0,
},*/
],
},
},
},
},
]