Level 5
##187000
Skill #187001
Level 5
##187000
Level 4
##187000
Level 3
##187000
Level 2
##187000
Level 1
##187000
Formulas & functions
Formula source
function CommonFun.calcBuff_150(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local PoisonAtk = srcUser:GetProperty("PoisonAtk")
local PoisonDef2 = targetUser:GetProperty("PoisonDef")
local PoisonDam = 1 + PoisonAtk - PoisonDef2
if PoisonDam <= 0 then
PoisonDam = 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) * PoisonDam * StateDam * CommonFun.calcAttrPoisonRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endFormula source
function CommonFun.calcBuff_152(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Num1 = srcUser:GetRunePoint(32005)
local RuneRate = Num1 * 10
local A = RuneRate
if A <= 0 then
return 0
end
return A
endFormula source
function CommonFun.calcBuff_5080(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local PoisonAtk = srcUser:GetProperty("PoisonAtk")
local PoisonDef2 = targetUser:GetProperty("PoisonDef")
local PoisonDam = 1 + PoisonAtk - PoisonDef2
if PoisonDam <= 0 then
PoisonDam = 0
end
local StateAtk = srcUser:GetProperty("StateAtk")
local StateDef2 = targetUser:GetProperty("StateDef")
local StateDam = (1 + StateAtk) * (1 - StateDef2)
if StateDam <= 0 then
StateDam = 0
end
local GemValue = srcUser:GetGemValue(31002)
local A = 0
if srcUser:HasBuffID(116010) and GemValue ~= 0 then
A = GemValue / 1000 * PoisonDam * StateDam * CommonFun.calcAttrPoisonRate(srcUser, targetUser)
end
if A <= 0 then
return 0
end
return A
endFormula source
function CommonFun.calcDamage_3202(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 damChangePer1 = damageParam.damChangePer1
local AttrEffect2 = srcUser:GetProperty("AttrEffect")
local bits2 = CommonFun.getBits(AttrEffect2)
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 Num1 = srcUser:GetRunePoint(32006)
local Num2 = srcUser:GetRunePoint(32007)
local Num3 = srcUser:GetRunePoint(32008)
local Num4 = srcUser:GetRunePoint(32009)
local RuneDamage = Num1 * 0.05 + Num2 * 0.1 + Num3 * 0.1 + Num4 * 0.05 + 1
local A = (((AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 + DamIncrease - LongRangeDamReduc2) + damChangePer1) * (1 - RefineDamReduc) - Vit2 * (1 + VitPer2)) * RuneDamage
if A <= 1 then
return 1
end
if bits2[CommonFun.AttrEffect.Hualiduanjian] == 1 then
return A * 1.5
end
return A
endSkill JSON (Level 5)
{
"id": 187005,
"NameZh": "剧毒暗器",
"Level": 5,
"Icon": "skill_187001",
"Cost": 1,
"Desc": [
{
"id": 187000,
"params": [
250
]
}
],
"RollType": 1,
"DamageType": 1,
"SkillType": "Attack",
"Camps": "Enemy",
"Launch_Range": 5,
"Fire_EP": 2,
"Target_EP": 3,
"Attack_EP": 3,
"CD": 2.5,
"SkillCost": {
"1": {
"itemID": 12522,
"num": 1
},
"sp": 30
},
"DelayCD": 1,
"Logic": "SkillLockedTarget",
"Damage": [
{
"damChangePer": 2.5,
"damChangePer1": 50,
"type": 3202
}
],
"DamTime": {
"type": 1,
"value": 1
},
"Buff": {
"enemy": [
95400,
95403,
95404
]
},
"Pvp_buff": {
"enemy": [
95400,
95403,
95404
]
},
"AttackAct": [
"use_magic"
],
"SE_attack": "Skill/VenomSplasher",
"SE_hit": "Skill/Spear_hit",
"description": {
"chinesesimplified": "##187000",
"english": "##187000",
"german": "##187000",
"portuguese": "##187000",
"spanish": "##187000"
}
}