boss.lua是原版boss,extendBoss.lua是扩展boss,两者的id没有重复的。
[1003] = {id = 1003, general = 2, grade = 1, level = 10, specialTriggerTime = 10., riseSpeed = 15, robotIndex = 15, defenseTrigger = 3, specialMoveTime = 2., specialCooldown = 4.5, flyDamage = 20,
basic = { health = 1000, attack = 23, defense = 83, dodge = 0.1,},
statusTime = {[1] = {12, 18}, [2] = {10, 15},},
skillConfig = {
steelArmor = {
[1] = {
trigger = {
condition = {"interval"},
interval = 15,
},
target = {
target = "boss",
},
effect = {
effect = {"removeDebuff"},
},
number = {
removeType = "all",
},
stop = {
condition = {"atOnce"}
},
},
[2] = {
trigger = {
condition = {"previousEffect"},
},
target = {
target = "boss",
},
effect = {
effect = {"buff"},
buff = "increaseAttribute",
targetAttribute = "defense",
},
number = {
calculation = {"constant"},
baseValue = 0.3,
},
stop = {
condition = {"overTime"},
effectTime = 10,
},
},
},
},
chase = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
moveSpeed = 5, turnTime = 2, chaseTime = 6,
}
} ,
transformChase = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
speed = 12, stayTime = 1,
}
} ,
slash = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
number = {
calculation = {"attackAttribute"},
ratioValue = 1,
},
range = 6, damage = 50, triggerDamageRate = 0.1, prepareTime = 0.8, dullTime = 1,
},
[2] = {
trigger = {
condition = {"onAttack"},
},
target = {
target = "hero",
},
effect = {
effect = {"debuff"},
debuff = "damageOverTime",
layer = 1,
},
number = {
calculation = {"scaleOnAttribute"},
source = "hero",
scaleOnAttribute = "health",
valueType = "max",
ratioValue = 0.01,
},
stop = {
condition = {"overTime"},
effectTime = 5,
},
},
},
shield = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
relaxTime = {1, 3}, triggerPossibility = 0.5,
}
} ,
dualSlash = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
number = {
[1] = {
calculation = {"attackAttribute"},
ratioValue = 0.4,
},
[2] = {
calculation = {"attackAttribute"},
ratioValue = 0.6,
},
},
damage1 = 20, damage2 = 30, range = 6, triggerDamageRate = 0.1, prepareTime = 0.5, dullTime = 0.5, triggerPossibility = 0.5,
},
[2] = {
trigger = {
condition = {"onAttack"},
},
target = {
target = "hero",
},
effect = {
effect = {"debuff"},
debuff = "damageOverTime",
layer = 1,
},
number = {
calculation = {"scaleOnAttribute"},
source = "hero",
scaleOnAttribute = "health",
valueType = "max",
ratioValue = 0.01,
},
stop = {
condition = {"overTime"},
effectTime = 5,
},
},
},
dash = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
number = {
calculation = {"attackAttribute"},
ratioValue = 0.8,
},
prepareTime = 0.5 ,range = 14, speed = 13, dullTime = 2, damage = 40, triggerDamageRate = 0.18, triggerPossibility = 0.3, dullDamageRate = 0.18,
},
[2] = {
trigger = {
condition = {"onAttack"},
},
target = {
target = "hero",
},
effect = {
effect = {"debuff"},
debuff = "damageOverTime",
layer = 1,
},
number = {
calculation = {"scaleOnAttribute"},
source = "hero",
scaleOnAttribute = "health",
valueType = "max",
ratioValue = 0.01,
},
stop = {
condition = {"overTime"},
effectTime = 5,
},
},
},
blink = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
prepareTime = {fadeIn = 0.4 , fadeOut = 0.07}, triggerPossibility = 0.3,
}
} ,
line = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
number = {
calculation = {"attackAttribute"},
ratioValue = 1.2,
},
length = 4, speed = 8, damage = 60, count = 3, prepareTime = 0.6, cooldown = 0.5, dullTime = 2, triggerDamageRate = 0.18, triggerPossibility = 0.3, dullDamageRate = 0.18,
},
[2] = {
trigger = {
condition = {"onAttack"},
},
target = {
target = "hero",
},
effect = {
effect = {"debuff"},
debuff = "damageOverTime",
layer = 1,
},
number = {
calculation = {"scaleOnAttribute"},
source = "hero",
scaleOnAttribute = "health",
valueType = "max",
ratioValue = 0.01,
},
stop = {
condition = {"overTime"},
effectTime = 5,
},
},
},
bombing = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
number = {
calculation = {"attackAttribute"},
ratioValue = 1.2,
},
damage = 60, missileCount = 6, angle = 10, speed = 10, cooldown = 0.3, cycle = 2, throughTime = 4, triggerPossibility = 0.5,
},
[2] = {
trigger = {
condition = {"onAttack"},
},
target = {
target = "hero",
},
effect = {
effect = {"debuff"},
debuff = "damageOverTime",
layer = 1,
},
number = {
calculation = {"scaleOnAttribute"},
source = "hero",
scaleOnAttribute = "health",
valueType = "max",
ratioValue = 0.01,
},
stop = {
condition = {"overTime"},
effectTime = 5,
},
},
},
crossBlades = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
number = {
calculation = {"attackAttribute"},
ratioValue = 0.8,
},
prepareTime = 2, damage = 40, bladeWidth = 2, crossPosition = {1, 4, 7, 10, 13}, crossHeight = 5, cooldown = 0.3, speed = 12, triggerPossibility = 0.5,
},
[2] = {
trigger = {
condition = {"onAttack"},
},
target = {
target = "hero",
},
effect = {
effect = {"debuff"},
debuff = "damageOverTime",
layer = 1,
},
number = {
calculation = {"scaleOnAttribute"},
source = "hero",
scaleOnAttribute = "health",
valueType = "max",
ratioValue = 0.01,
},
stop = {
condition = {"overTime"},
effectTime = 5,
},
},
},
goldenSunlight = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
number = {
calculation = {"attackAttribute"},
ratioValue = 0.4,
},
damage = 20, damageTime = 5, rotateAngle = 75, rotateTime = 2, beamHeight = 1.7, prepareTime = 1.5, triggerPossibility = 0.5,
},
[2] = {
trigger = {
condition = {"onAttack"},
},
target = {
target = "hero",
},
effect = {
effect = {"debuff"},
debuff = "damageOverTime",
layer = 1,
},
number = {
calculation = {"scaleOnAttribute"},
source = "hero",
scaleOnAttribute = "health",
valueType = "max",
ratioValue = 0.01,
},
stop = {
condition = {"overTime"},
effectTime = 5,
},
},
},
},
[242] = {id = 242, originId = 1003 -- original boss id
grade = 2, level = 15,
basic = {health = 2000}, -- changed config, in same structure
},