Skill #2199001

Thump

Basic single-target physical melee skill. Deals moderate damage.

Level 1

##2199000

CD 0s | Cost 0 | Attack

ID 2199001

Formulas & functions

CommonFun links

ThumpLv 1 | buff | Buffs 96160

Formula source

function CommonFun.calcBuff_130(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local StunAtk = srcUser:GetProperty("StunAtk")
  local StunDef2 = targetUser:GetProperty("StunDef")
  local StunDam = 1 + StunAtk - StunDef2
  if StunDam <= 0 then
    StunDam = 0
  end
  local StateAtk = srcUser:GetProperty("StateAtk")
  local StateDef2 = targetUser:GetProperty("StateDef")
  local StateDam = 1 + StateAtk - StateDef2
  if StateDam <= 0 then
    StateDam = 0
  end
  local A = (lv * a + b) * StunDam * StateDam * CommonFun.calcAttrDizzyRate(srcUser, targetUser)
  if A <= 0 then
    return 0
  end
  return A
end
ThumpLv 1 | damage

Formula source

function CommonFun.calcDamage_17301(srcUser, targetUser, params, damageParam, logger)
  local Str = srcUser:GetProperty("Str")
  local Dex = srcUser:GetProperty("Dex")
  local Luk = srcUser:GetProperty("Luk")
  local Atk = srcUser:GetProperty("Atk")
  local AtkPer = srcUser:GetProperty("AtkPer")
  local NormalAtk = srcUser:GetProperty("NormalAtk")
  NormalAtk = NormalAtk + 3 * Dex
  local DamIncrease = srcUser:GetProperty("DamIncrease")
  local IgnoreDef = 0
  local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
  local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
  if targetUser.boss or targetUser.mini then
    IgnoreDef = IgnoreDef1
  else
    IgnoreDef = IgnoreDef1 + IgnoreDef2
  end
  if 1 <= IgnoreDef then
    IgnoreDef = 1
  end
  local Refine = srcUser:GetProperty("Refine")
  local AttrEffect = targetUser:GetProperty("AttrEffect")
  local bits = CommonFun.getBits(AttrEffect)
  local Def2 = targetUser:GetProperty("Def")
  local DefPer2 = targetUser:GetProperty("DefPer")
  local Vit2 = targetUser:GetProperty("Vit")
  local VitPer2 = targetUser:GetProperty("VitPer")
  local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
  local LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
  local damChangePer = damageParam.damChangePer
  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
  local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
  local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
  local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
  local BaseAtk = Dex * 2 + math.floor(Dex * Dex / 100) + math.floor(Str / 5) + math.floor(Luk / 5)
  local AtkFinal = ((Atk - BaseAtk) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
  local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if skillID == 2005 then
    local GemValue = srcUser:GetGemValue(173052)
    local GemDam = 1 + GemValue / 100000
    A = A * GemDam
  end
  if skillID == 2200 or skillID == 2199 then
    local WeaponType = srcUser:GetEquipedWeaponType()
    if WeaponType == 320 then
      A = A * 2
    end
  end
  if skillID == 2250 or skillID == 818 then
    local GemValue = srcUser:GetGemValue(173161)
    A = A * (1 + GemValue / 100000)
  end
  if A <= 1 then
    return 1
  end
  return A
end

Skill JSON (Level 1)

{
  "id": 2199001,
  "NameZh": "重击",
  "Level": 1,
  "Icon": "skill_12001",
  "Cost": 0,
  "Desc": [
    {
      "id": 2199000,
      "params": [
        200
      ]
    }
  ],
  "RollType": 1,
  "SkillType": "Attack",
  "Camps": "Enemy",
  "Launch_Range": 2,
  "Fire_EP": 3,
  "Fire_EP_Weapon": 1,
  "Target_EP": 3,
  "Attack_EP": 2,
  "CD": 0,
  "Logic": "SkillSelfRange",
  "Logic_Param": {
    "ignoreHit": 1,
    "range": 2
  },
  "Damage": [
    {
      "damChangePer": 2,
      "type": 17301
    }
  ],
  "DamTime": {
    "type": 1,
    "value": 2
  },
  "HitEffects": [
    {
      "direction": "back",
      "distance": 4,
      "speed": 15,
      "type": 1
    }
  ],
  "Buff": {
    "enemy": [
      96160
    ],
    "self": [
      120069
    ]
  },
  "Pvp_buff": {
    "enemy": [
      96160
    ],
    "self": [
      120069
    ]
  },
  "AttackAct": [
    "whack"
  ],
  "SE_attack": "Common/sfx_skill_player_thump_attack_01",
  "description": {
    "chinesesimplified": "##2199000",
    "english": "##2199000",
    "german": "##2199000",
    "portuguese": "##2199000",
    "spanish": "##2199000"
  }
}