Arm Cannon
Lvl: 10 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3

Fires with Madogear’s arm cannon, dealing Atk2060% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee

Lvl: 9 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1950% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee
Lvl: 8 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1840% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee
Lvl: 7 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1730% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee
Lvl: 6 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1620% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee
Lvl: 5 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1510% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee
Lvl: 4 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1400% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee
Lvl: 3 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1290% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee
Lvl: 2 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1180% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee
Lvl: 1 Attack Physical Skill Delay: 1.5 sec SP: 40 Range: 7.5 Cast Time: 3
• Fires with Madogear’s arm cannon, dealing Atk1070% neutral Dmg to enemies in range. Deals 1.5x/1x/0.75x damage to small/mid/large sized enemy. This skill ignores Flee

Aesir

• Arm Cannon - Enhance [Arm Cannon] damage + 10%
• Arm Cannon - Destroy [Arm Cannon] reduces enemy Def by 10% for 5 sec

Formula

function CommonFun.calcDamage_6404(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 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 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 RefineDamReduc = targetUser:GetProperty("RefineDamReduc")
  local damChangePer = damageParam.damChangePer
  local Weapon = srcUser:GetEquipedID(7_WEAPON)
  local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
  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 = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 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 LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
  local sizeCorrection = 1
  if nil ~= CommonFun.Shape then
    if CommonFun.Shape.S == targetUser.shape then
      sizeCorrection = 1.5
    elseif CommonFun.Shape.M == targetUser.shape then
      sizeCorrection = 1
    elseif CommonFun.Shape.L == targetUser.shape then
      sizeCorrection = 0.75
    end
  end
  if nil ~= CommonFun.Shape and CommonFun.Shape.L == targetUser.shape and srcUser:HasBuffID(90004414_AVALANCHE_1_T5_:MAX_STACK_0) then
    sizeCorrection = sizeCorrection + 0.15
  end
  local huimie = 1
  local RefineLv7 = srcUser:GetEquipedRefineLv(7_WEAPON)
  if srcUser:HasBuffID(90000647_DOOM_AXE_1_R8_:MAX_STACK_0) then
    if RefineLv7 < 15 then
      huimie = RefineLv7 * 0.01 + 1 + 0.05
    elseif 15 <= RefineLv7 then
      huimie = RefineLv7 * 0.01 + 1 + 0.05 + 0.1
    end
  end
  if srcUser:HasBuffID(41940_SHATTERED_EARTH_:MAX_STACK_0) then
    if RefineLv7 < 15 then
      huimie = RefineLv7 * 0.01 + 1 + 0.05
    elseif 15 <= RefineLv7 then
      huimie = RefineLv7 * 0.01 + 1 + 0.05 + 0.1
    end
  end
  local Num = srcUser:GetRunePoint(64070_AESIR_ARM_CANNON_DAMAGE_10)
  local RuneDamage = 1 + Num * 0.1
  local Card = 1
  if srcUser:HasBuffID(53310_MECHANICAL_HOUND_CARD_:MAX_STACK_0) then
    if 10 <= RefineLv7 then
      Card = Card + 0.1
    else
      Card = Card + 0.05
    end
  end
  local GemValue = srcUser:GetGemValue(61001_ARM_CANNON_DMG_PERCENTAGE)
  local GemDam = 1 + GemValue / 100000
  local Num_dy = srcUser:GetBuffLayer(20610121_ARM_CANNON_FILLER_:MAX_STACK_0)
  Num_dy = Num_dy + 1
  local recursion = 1
  local skilllv_dg = srcUser:GetLernedSkillLevel(4308_CHRONOMANCER:RECURSION)
  local skilllv_dg2 = srcUser:GetLernedSkillLevel(4322_CHRONOMANCER:RECURSION_ENERGY)
  local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
  if srcUser:HasBuffID(132431_RECURSION_ARM_CANNON_:MAX_STACK_0) and skillID == 1288_ASSASSIN:ARM_CANNON then
    recursion = 1 + skilllv_dg * 0.03 + skilllv_dg2 * 0.02
  end
  if skillID == 4310_CHRONOMANCER:PHOTON_CANNON then
    local skilllv_jn = srcUser:GetLernedSkillLevel(1288_ASSASSIN:ARM_CANNON)
    local skilllv_gz = srcUser:GetLernedSkillLevel(4310_CHRONOMANCER:PHOTON_CANNON)
    local Master = srcUser:GetMasterUser()
    if Master ~= nil then
      skilllv_jn = Master:GetLernedSkillLevel(1288_ASSASSIN:ARM_CANNON)
      skilllv_gz = Master:GetLernedSkillLevel(4310_CHRONOMANCER:PHOTON_CANNON)
    end
    Num_dy = 1
    local DamGem = srcUser:GetGemValue(61161_PHOTON_CANNON_DMG_PERCENTAGE)
    damChangePer = (skilllv_jn * 1.1 + 9.6) * (skilllv_gz * 0.05 + 0.5) * (1 + DamGem / 100000)
    if srcUser:HasBuffID(56460_EMP_CARD_:MAX_STACK_0) or srcUser:HasBuffID(56470_EMP_CARD_:MAX_STACK_0) then
      damChangePer = damChangePer * 1.3
    end
    if srcUser:HasBuffID(132432_RECURSION_PHOTON_CANNON_:MAX_STACK_0) then
      recursion = 1 + skilllv_dg * 0.03 + skilllv_dg2 * 0.02
    end
  end
  local A = ((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)) * sizeCorrection * huimie * RuneDamage * Card * GemDam * Num_dy * recursion
  if A <= 1 then
    return 1
  end
  return A
end

Self

{
  "id": 132431,
  "BuffDesc": "Arm Cannon in Recursion",
  "BuffIcon": "skillbuff_commonbuff",
  "BuffName": "Recursion (Arm Cannon)",
  "BuffRate": {
    "Odds": {
      "a": 4308,
      "b": 100,
      "c": 0,
      "type": 8
    }
  },
  "BuffType": {
    "isgain": 1,
    "isdisperse": 1
  },
  "IconType": 1,
  "DelBuffID": [
    132430,
    132432
  ]
}

Self

{
  "id": 20610122,
  "BuffName": "Delete All Arm Cannons",
  "BuffRate": {
    "Odds": 100
  },
  "Condition": {
    "time": 0.99,
    "type": "AfterTime"
  },
  "BuffEffect": {
    "type": "DelBuff",
    "layer": [
      {
        "id": 20610121,
        "layer": 6
      }
    ]
  }
}

Enemy

{
  "id": 117930,
  "BuffName": "Arm Cannon(Def down)",
  "BuffRate": {
    "Odds": {
      "a": 0,
      "b": 0,
      "c": 64080,
      "d": 100,
      "type": 3250
    }
  },
  "BuffType": {
    "isgain": 0,
    "isdisperse": 1
  },
  "BuffEffect": {
    "type": "AttrChange",
    "DefPer": {
      "a": 0,
      "b": 0,
      "c": 64080,
      "d": -0.1,
      "type": 3250
    }
  }
}

Formula

{
  "id": 1288010,
  "Buff": {
    "self": [
      20610122,
      132431
    ],
    "enemy": [
      117930
    ]
  },
  "Cost": 1,
  "Desc": [
    {
      "id": 1288000,
      "params": [
        2060
      ]
    }
  ],
  "Icon": "skill_1288001",
  "Camps": "Enemy",
  "Level": 10,
  "Logic": "SkillLockedTarget",
  "Damage": [
    {
      "type": 6404,
      "damChangePer": 20.6,
      "elementparam": 5
    }
  ],
  "DescId": "##170669",
  "NameZh": "##169463",
  "SE_hit": "Skill/Cannon_hit",
  "CastAct": "skill_reading",
  "DamTime": {
    "type": 3,
    "value": {
      "buffid": 20610121,
      "default": 1
    }
  },
  "DelayCD": 1.5,
  "Fire_EP": 6,
  "SE_cast": "Common/Magic_cast",
  "Pvp_buff": {
    "self": [
      20610122,
      132431
    ],
    "enemy": [
      117930
    ]
  },
  "RollType": 1,
  "AttackAct": [
    "use_skill2"
  ],
  "Attack_EP": 6,
  "Lead_Type": {
    "CCT": 0,
    "FCT": 3,
    "type": 2
  },
  "SE_attack": "Skill/GunArray_BloodCross_attack",
  "SkillCost": {
    "1": {
      "num": 1,
      "itemID": 12570
    },
    "sp": 40
  },
  "SkillType": "Attack",
  "Target_EP": 0,
  "DamageType": 1,
  "Logic_Param": {
    "range": 3,
    "range_num": 8
  },
  "Launch_Range": 7.5,
  "PreCondition": {
    "ProType": 5
  }
}