Ghost

Game resources

PinballUFO FrontDamageReduce

game_resourceIntrinsic/flexbuffers-json/PinballUFO_FrontDamageReduce

Properties

3
Source evidence
Path
Intrinsic/flexbuffers-json/PinballUFO_FrontDamageReduce.json
data
{
  "AbilityName": "PinballUFO_FrontDamageReduce",
  "AbilitySpecials": {
    "AS_FrontDamageTakeRatio": {
      "Value": -0.5,
      "ValueType": "Float"
    },
    "AS_FrontDamageTakeRatio_Boss": {
      "Value": -0.5,
      "ValueType": "Float"
    },
    "AS_FrontDamageTakeRatio_Elite": {
      "Value": -0.5,
      "ValueType": "Float"
    },
    "AS_FrontDamageTakeRatio_Normal": {
      "Value": -0.5,
      "ValueType": "Float"
    }
  },
  "AbilityStacking": "Unique",
  "DefaultModifier": {
    "OnAdded": [
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByAIParam",
            "Target": "Self",
            "ParamName": "Int_IsElite",
            "CompareType": "Equal",
            "FloatParamValue": 0
          }
        ],
        "SuccessActions": [
          {
            "Tag": "PinballUFO_FrontShieldVFX",
            "$type": "AttachEffect",
            "Target": "Self",
            "EffectScale": {
              "x": 0.6,
              "y": 0.6,
              "z": 0.6
            },
            "EffectPattern": "Eff_Pinball_Activity_05_Shield",
            "AttachEffectPosRot": {
              "Offset": {
                "PositionOffset": {
                  "x": 0,
                  "y": 0,
                  "z": 0.2
                }
              },
              "CoordsOption": "ReferTarget",
              "TargetOption": {
                "$type": "ConfigPosRotReferTarget",
                "AttachPoint": "EffPoint",
                "OffsetReferTarget": "Self",
                "IsUseAttachPointPos": true,
                "IsUseAttachPointRotation": true
              }
            }
          }
        ]
      },
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByAIParam",
            "Target": "Self",
            "ParamName": "Int_IsElite",
            "CompareType": "Equal",
            "FloatParamValue": 1
          }
        ],
        "SuccessActions": [
          {
            "Tag": "PinballUFO_FrontShieldVFX",
            "$type": "AttachEffect",
            "Target": "Self",
            "EffectScale": {
              "x": 0.8,
              "y": 0.8,
              "z": 0.8
            },
            "EffectPattern": "Eff_Pinball_Activity_05_Shield",
            "AttachEffectPosRot": {
              "Offset": {
                "PositionOffset": {
                  "x": 0,
                  "y": 0,
                  "z": 0.1
                }
              },
              "CoordsOption": "ReferTarget",
              "TargetOption": {
                "$type": "ConfigPosRotReferTarget",
                "AttachPoint": "EffPoint",
                "OffsetReferTarget": "Self",
                "IsUseAttachPointPos": true,
                "IsUseAttachPointRotation": true
              }
            }
          }
        ]
      },
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByAIParam",
            "Target": "Self",
            "ParamName": "Int_IsElite",
            "CompareType": "Equal",
            "FloatParamValue": 2
          }
        ],
        "SuccessActions": [
          {
            "Tag": "PinballUFO_FrontShieldVFX",
            "$type": "AttachEffect",
            "Target": "Self",
            "EffectScale": {
              "x": 1,
              "y": 1,
              "z": 1
            },
            "EffectPattern": "Eff_Pinball_Activity_05_Shield",
            "AttachEffectPosRot": {
              "CoordsOption": "ReferTarget",
              "TargetOption": {
                "$type": "ConfigPosRotReferTarget",
                "AttachPoint": "EffPoint",
                "OffsetReferTarget": "Self",
                "IsUseAttachPointPos": true,
                "IsUseAttachPointRotation": true
              }
            }
          }
        ]
      },
      {
        "$type": "SetAbilitySpecialAction",
        "Param": "%AS_FrontDamageTakeRatio_Normal",
        "Target": "Self",
        "DoRefresh": true,
        "ParamName": "AS_FrontDamageTakeRatio",
        "ParamType": "Float",
        "Predicates": [
          {
            "$type": "ByAIParam",
            "Target": "Self",
            "ParamName": "Int_IsElite",
            "CompareType": "Equal",
            "FloatParamValue": 0
          }
        ],
        "ModifyFunction": "Replace"
      },
      {
        "$type": "SetAbilitySpecialAction",
        "Param": "%AS_FrontDamageTakeRatio_Elite",
        "Target": "Self",
        "DoRefresh": true,
        "ParamName": "AS_FrontDamageTakeRatio",
        "ParamType": "Float",
        "Predicates": [
          {
            "$type": "ByAIParam",
            "Target": "Self",
            "ParamName": "Int_IsElite",
            "CompareType": "Equal",
            "FloatParamValue": 1
          }
        ],
        "ModifyFunction": "Replace"
      },
      {
        "$type": "SetAbilitySpecialAction",
        "Param": "%AS_FrontDamageTakeRatio_Boss",
        "Target": "Self",
        "DoRefresh": true,
        "ParamName": "AS_FrontDamageTakeRatio",
        "ParamType": "Float",
        "Predicates": [
          {
            "$type": "ByAIParam",
            "Target": "Self",
            "ParamName": "Int_IsElite",
            "CompareType": "Equal",
            "FloatParamValue": 2
          }
        ],
        "ModifyFunction": "Replace"
      }
    ],
    "Duration": -1,
    "OnRemoved": [
      {
        "Tag": "PinballUFO_FrontShieldVFX",
        "$type": "RemoveEffectByTagAndOwner",
        "Target": "Self",
        "KillImmediately": false
      }
    ],
    "OnBeingHit": [
      {
        "$type": "FireEffect",
        "Target": "Self",
        "Predicates": [
          {
            "$type": "ByOr",
            "Target": "Other",
            "Predicates": [
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByFromBullet",
                    "CompareValue": false
                  },
                  {
                    "Kind": "Ball",
                    "$type": "ByPinballKind",
                    "UseOther": true
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              },
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByOr",
                    "Target": "Other",
                    "Predicates": [
                      {
                        "$type": "ByFromBullet",
                        "CompareValue": true
                      },
                      {
                        "$type": "ByNot",
                        "Target": "Other",
                        "Predicates": [
                          {
                            "Kind": "Ball",
                            "$type": "ByPinballKind",
                            "UseOther": true
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              }
            ]
          },
          {
            "$type": "ByAnimCtrlerParam",
            "Target": "Self",
            "BoolVal": false,
            "ParamName": "Bool_IsInStun",
            "ParamType": 2,
            "CompareType": "Equal"
          }
        ],
        "EffectPattern": "Eff_Pinball_Activity_12_Hit",
        "FireEffectPosRot": {
          "CoordsOption": "ReferTarget",
          "TargetOption": {
            "$type": "ConfigPosRotReferTarget",
            "AttachPoint": "EffPoint",
            "OffsetReferTarget": "Self",
            "IsUseAttachPointPos": true,
            "IsUseAttachPointRotation": true
          }
        }
      }
    ],
    "OnBeingHitPre": [
      {
        "$type": "ModifyAttackDataAction",
        "Target": "Self",
        "Predicates": [
          {
            "$type": "ByOr",
            "Target": "Other",
            "Predicates": [
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByFromBullet",
                    "CompareValue": false
                  },
                  {
                    "Kind": "Ball",
                    "$type": "ByPinballKind",
                    "UseOther": true
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              },
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByOr",
                    "Target": "Other",
                    "Predicates": [
                      {
                        "$type": "ByFromBullet",
                        "CompareValue": true
                      },
                      {
                        "$type": "ByNot",
                        "Target": "Other",
                        "Predicates": [
                          {
                            "Kind": "Ball",
                            "$type": "ByPinballKind",
                            "UseOther": true
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              }
            ]
          },
          {
            "$type": "ByAnimCtrlerParam",
            "Target": "Self",
            "BoolVal": false,
            "ParamName": "Bool_IsInStun",
            "ParamType": 2,
            "CompareType": "Equal"
          }
        ],
        "PropertyKey": "Actor_DamageTakeRatio",
        "PropertyValue": "%AS_FrontDamageTakeRatio"
      },
      {
        "$type": "ModifyAttackDataAction",
        "Predicates": [
          {
            "$type": "ByOr",
            "Target": "Other",
            "Predicates": [
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByFromBullet",
                    "CompareValue": false
                  },
                  {
                    "Kind": "Ball",
                    "$type": "ByPinballKind",
                    "UseOther": true
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              },
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByOr",
                    "Target": "Other",
                    "Predicates": [
                      {
                        "$type": "ByFromBullet",
                        "CompareValue": true
                      },
                      {
                        "$type": "ByNot",
                        "Target": "Other",
                        "Predicates": [
                          {
                            "Kind": "Ball",
                            "$type": "ByPinballKind",
                            "UseOther": true
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              }
            ]
          },
          {
            "$type": "ByAnimCtrlerParam",
            "Target": "Self",
            "BoolVal": false,
            "ParamName": "Bool_IsInStun",
            "ParamType": 2,
            "CompareType": "Equal"
          }
        ],
        "PropertyKey": "Actor_ForceAttackerDamageTextGrey",
        "PropertyValue": 1
      }
    ],
    "ModifierStacking": "Unique",
    "OnCustomEventReceived": [
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByCustomEvent",
            "EventKey": "Event_UFO_FrontShieldOff"
          }
        ],
        "SuccessActions": [
          {
            "Tag": "PinballUFO_FrontShieldVFX",
            "$type": "RemoveEffectByTagAndOwner",
            "Target": "Self",
            "KillImmediately": false
          }
        ]
      },
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByCustomEvent",
            "EventKey": "Event_UFO_FrontShieldOn"
          }
        ],
        "SuccessActions": [
          {
            "$type": "BranchOperator",
            "Conditions": [
              {
                "$type": "ByAIParam",
                "Target": "Self",
                "ParamName": "Int_IsElite",
                "CompareType": "Equal",
                "FloatParamValue": 0
              }
            ],
            "SuccessActions": [
              {
                "Tag": "PinballUFO_FrontShieldVFX",
                "$type": "AttachEffect",
                "Target": "Self",
                "EffectScale": {
                  "x": 0.6,
                  "y": 0.6,
                  "z": 0.6
                },
                "EffectPattern": "Eff_Pinball_Activity_05_Shield",
                "AttachEffectPosRot": {
                  "Offset": {
                    "PositionOffset": {
                      "x": 0,
                      "y": 0,
                      "z": 0.2
                    }
                  },
                  "CoordsOption": "ReferTarget",
                  "TargetOption": {
                    "$type": "ConfigPosRotReferTarget",
                    "AttachPoint": "EffPoint",
                    "OffsetReferTarget": "Self",
                    "IsUseAttachPointPos": true,
                    "IsUseAttachPointRotation": true
                  }
                }
              }
            ]
          },
          {
            "$type": "BranchOperator",
            "Conditions": [
              {
                "$type": "ByAIParam",
                "Target": "Self",
                "ParamName": "Int_IsElite",
                "CompareType": "Equal",
                "FloatParamValue": 1
              }
            ],
            "SuccessActions": [
              {
                "Tag": "PinballUFO_FrontShieldVFX",
                "$type": "AttachEffect",
                "Target": "Self",
                "EffectScale": {
                  "x": 0.8,
                  "y": 0.8,
                  "z": 0.8
                },
                "EffectPattern": "Eff_Pinball_Activity_05_Shield",
                "AttachEffectPosRot": {
                  "Offset": {
                    "PositionOffset": {
                      "x": 0,
                      "y": 0,
                      "z": 0.1
                    }
                  },
                  "CoordsOption": "ReferTarget",
                  "TargetOption": {
                    "$type": "ConfigPosRotReferTarget",
                    "AttachPoint": "EffPoint",
                    "OffsetReferTarget": "Self",
                    "IsUseAttachPointPos": true,
                    "IsUseAttachPointRotation": true
                  }
                }
              }
            ]
          },
          {
            "$type": "BranchOperator",
            "Conditions": [
              {
                "$type": "ByAIParam",
                "Target": "Self",
                "ParamName": "Int_IsElite",
                "CompareType": "Equal",
                "FloatParamValue": 2
              }
            ],
            "SuccessActions": [
              {
                "Tag": "PinballUFO_FrontShieldVFX",
                "$type": "AttachEffect",
                "Target": "Self",
                "EffectScale": {
                  "x": 1,
                  "y": 1,
                  "z": 1
                },
                "EffectPattern": "Eff_Pinball_Activity_05_Shield",
                "AttachEffectPosRot": {
                  "CoordsOption": "ReferTarget",
                  "TargetOption": {
                    "$type": "ConfigPosRotReferTarget",
                    "AttachPoint": "EffPoint",
                    "OffsetReferTarget": "Self",
                    "IsUseAttachPointPos": true,
                    "IsUseAttachPointRotation": true
                  }
                }
              }
            ]
          }
        ]
      }
    ],
    "OnIndirectBeingHitPre": [
      {
        "$type": "ModifyAttackDataAction",
        "Target": "Self",
        "Predicates": [
          {
            "$type": "ByOr",
            "Target": "Other",
            "Predicates": [
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByFromBullet",
                    "CompareValue": false
                  },
                  {
                    "Kind": "Ball",
                    "$type": "ByPinballKind",
                    "UseOther": true
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              },
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByOr",
                    "Target": "Other",
                    "Predicates": [
                      {
                        "$type": "ByFromBullet",
                        "CompareValue": true
                      },
                      {
                        "$type": "ByNot",
                        "Target": "Other",
                        "Predicates": [
                          {
                            "Kind": "Ball",
                            "$type": "ByPinballKind",
                            "UseOther": true
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              }
            ]
          },
          {
            "$type": "ByAnimCtrlerParam",
            "Target": "Self",
            "BoolVal": false,
            "ParamName": "Bool_IsInStun",
            "ParamType": 2,
            "CompareType": "Equal"
          }
        ],
        "PropertyKey": "Actor_DamageTakeRatio",
        "PropertyValue": "%AS_FrontDamageTakeRatio"
      },
      {
        "$type": "ModifyAttackDataAction",
        "Predicates": [
          {
            "$type": "ByOr",
            "Target": "Other",
            "Predicates": [
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByFromBullet",
                    "CompareValue": false
                  },
                  {
                    "Kind": "Ball",
                    "$type": "ByPinballKind",
                    "UseOther": true
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              },
              {
                "$type": "ByAnd",
                "Target": "Other",
                "Predicates": [
                  {
                    "$type": "ByOr",
                    "Target": "Other",
                    "Predicates": [
                      {
                        "$type": "ByFromBullet",
                        "CompareValue": true
                      },
                      {
                        "$type": "ByNot",
                        "Target": "Other",
                        "Predicates": [
                          {
                            "Kind": "Ball",
                            "$type": "ByPinballKind",
                            "UseOther": true
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "$type": "ByAngleRange",
                    "Target": "Self",
                    "AngleMax": 67.5,
                    "AngleMin": -67.5,
                    "CompareTarget": "Other"
                  }
                ]
              }
            ]
          },
          {
            "$type": "ByAnimCtrlerParam",
            "Target": "Self",
            "BoolVal": false,
            "ParamName": "Bool_IsInStun",
            "ParamType": 2,
            "CompareType": "Equal"
          }
        ],
        "PropertyKey": "Actor_ForceAttackerDamageTextGrey",
        "PropertyValue": 1
      }
    ]
  }
}
format
json
displayName
PinballUFO_FrontDamageReduce