Level 1
Skill #15082001
Formless Surge (Virtual Entity)
Formulas & functions
CommonFun links
无相涌动(虚拟体)Lv 1 | damage
Formula source
function CommonFun.calcDamage_8015(srcUser, targetUser, params, damageParam, logger)
local Str = srcUser:GetProperty("Str")
local Dex = srcUser:GetProperty("Dex")
local Luk = srcUser:GetProperty("Luk")
local Luk2 = targetUser: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 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 = 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 LongRangeDamReduc2 = targetUser:GetProperty("LongRangeDamReduc")
local damChangePer = damageParam.damChangePer
local skillID, skillLevel = CommonFun.UnmergeSkillID(params.skillIDAndLevel)
local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - LongRangeDamReduc2) - Vit2 * (1 + VitPer2)
if enemy == false then
return 0, CommonFun.DamageType.None
end
if A <= 1 then
return 1
end
return A
endSkill JSON (Level 1)
{
"id": 15082001,
"NameZh": "无相涌动(虚拟体)",
"Level": 1,
"Icon": "",
"Cost": 1,
"RollType": 2,
"DamageType": 2,
"SkillType": "Attack",
"Camps": "Enemy",
"Launch_Range": 80,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 2,
"Lead_Type": {
"ReadyTime": 1.6,
"type": 1
},
"Logic": "SkillForwardRect",
"Logic_Param": {
"angle": 36,
"current_dir": 1,
"distance": 16,
"forward_offset": 0,
"immune_taunt": 1,
"noChant": 1,
"noReadingEffect": 1,
"noSpeak": 1,
"no_select": 1,
"shape": "arc"
},
"Damage": [
{
"damChangePer": 20,
"elementparam": 5,
"type": 8015
}
],
"DamTime": {
"type": 1,
"value": 1
},
"HitEffects": [
{
"direction": "back",
"distance": 6,
"speed": 10,
"type": 1
}
],
"Buff": {
"self": [
309
]
},
"Pvp_buff": {
"self": [
309
]
},
"CastAct": "reading",
"AttackAct": [
"attack"
],
"SE_cast": "Skill/sfx_skill_prince_sickle_charge_01",
"SE_attack": "skill_magic_lightningwave_attack",
"SE_hit": "Skill/FireBall_hit"
}