Level 1
##40011000
Skill #40011001
Level 1
##40011000
Formulas & functions
Formula source
function CommonFun.calcBuff_120(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local StoneAtk = srcUser:GetProperty("StoneAtk")
local StoneDef2 = targetUser:GetProperty("StoneDef")
local StoneDam = 1 + StoneAtk - StoneDef2
if StoneDam <= 0 then
StoneDam = 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) * StoneDam * StateDam * CommonFun.calcAttrStoneRate(srcUser, targetUser)
if A <= 0 then
return 0
end
return A
endFormula source
function CommonFun.calcDamage_8000(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 BaseLv = targetUser.BaseLv
local WeaponType = srcUser:GetEquipedWeaponType()
local skilllv_1 = srcUser:GetLernedSkillLevel(damageParam.skill1_id)
local Refine = srcUser:GetProperty("Refine")
local damChangePer = damageParam.damChangePer
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 AtkFinal = math.floor(BaseLv, BaseLv * 3) * damChangePer
local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * (1 + DamIncrease) * (1 - RefineDamReduc) - Vit2 * (1 + VitPer2)
if A <= 1 then
return 1
end
return A
endSkill JSON (Level 1)
{
"id": 40011001,
"NameZh": "喵突",
"Level": 1,
"Icon": "skill_181001",
"Desc": [
{
"id": 40011000,
"params": [
150
]
}
],
"RollType": 1,
"SkillType": "Attack",
"Camps": "Enemy",
"Launch_Range": 6,
"Fire_EP": 3,
"Target_EP": 3,
"Attack_EP": 0,
"CD": 10,
"Logic": "SkillLockedTarget",
"Damage": [
{
"damChangePer": 1.5,
"type": 8000
}
],
"DamTime": {
"type": 1,
"value": 3
},
"HitEffects": [
{
"direction": "back",
"distance": 1,
"speed": 10,
"type": 1
}
],
"AttackEffects": [
{
"direction": "forward",
"distance": 4,
"speed": 20,
"type": 1
}
],
"Buff": {
"enemy": [
120230
]
},
"Pvp_buff": {
"enemy": [
120230
]
},
"AttackAct": [
"attack"
],
"SE_attack": "Skill/ClashingSpiral_fire",
"SE_hit": "Skill/ClashingSpiral_hit",
"description": {
"chinesesimplified": "##40011000",
"english": "##40011000",
"german": "##40011000",
"portuguese": "##40011000",
"spanish": "##40011000"
}
}