Skip to content

Instantly share code, notes, and snippets.

@cqnature
Created June 30, 2015 07:30
Show Gist options
  • Save cqnature/cc2b238918120652a6f4 to your computer and use it in GitHub Desktop.
Save cqnature/cc2b238918120652a6f4 to your computer and use it in GitHub Desktop.
[2044] = {id = 2044, robotIndex = 2007, ignoreGravity = true,
basic = { health = 6, attack = 20, defense = 9999999, },
activate = {delay = 2, location = {x = 0.8, y = 0.7}},
skillConfig = {
fly = {
[1] = {
trigger = {
condition = {"interval"},
interval = 20,
},
target = {
target = "boss",
type = "boss/minion/all", --目标类型限制为boss, minion或者all
},
effect = {
effect = {"buff"},
buff = "increaseAttribute",
targetAttribute = "dodge",
},
number = {
calculation = {"constant"},
baseValue = 0.3,
},
stop = {
condition = {"overTime"},
effectTime = 10,
},
},
},
},
sleepwalking = {
[1] = {
target = {
target = "pathCollision",
},
effect = {
effect = {"attack"},
},
moveSpeed = 2, chaseTime = 2, runTime = 3, runSpeed = 5, dullTime = 2, drop = {type = "gold", total = 50, hitRate = 0.4}, stayTime = 15, triggerDamageRate = 0.2,
}
} ,
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment