feat: adapt skill to the new Choregraphy System

This commit is contained in:
Kazhnuz 2020-07-24 19:13:08 +02:00
parent 55d66eef85
commit 070d23076b
3 changed files with 14 additions and 14 deletions

View file

@ -11,31 +11,31 @@ return {
needTarget = true, needTarget = true,
targetNumber = 1, -- 0 for targeting all ennemies targetNumber = 1, -- 0 for targeting all ennemies
effectArea = {1, 0, "point", 1, true}, -- which area is affected by the attack
-- if not nil : {ox, oy, shape, size, affectedByDirection}
choregraphy = { -- the main attack choregraphy choregraphy = { -- the main attack choregraphy
--{'goTo', "none", "target", 0, 0}
{'playSFX', "none", 'hit'}, {'playSFX', "none", 'hit'},
{'setAnimation', "none", 'hit1start', true}, {'setAnimation', "none", 'hit1start', true},
{'sendDamage', "none", 33, 100, false, false}, {'sendDamage', "none", 33, 100, false, false},
{'addGFX',"sentDamage", 'hitGFX', 0.75, 0, true, false}, {'addGFX',"sentDamage", 'hitGFX', "target", 0.75, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'setAnimation', "none", 'hit1end', true}, {'setAnimation', "none", 'hit1end', true},
{'playSFX', "none", 'hit'}, {'playSFX', "none", 'hit'},
{'setAnimation', "none", 'hit2start', true}, {'setAnimation', "none", 'hit2start', true},
{'sendDamage', "none", 33, 100, false, false}, {'sendDamage', "none", 33, 100, false, false},
{'addGFX',"sentDamage", 'hitGFX', 0.75, 0, true, false}, {'addGFX',"sentDamage", 'hitGFX', "target", 0.75, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'setAnimation', "none", 'hit2end', true}, {'setAnimation', "none", 'hit2end', true},
{'playSFX', "none", 'hit'}, {'playSFX', "none", 'hit'},
{'setAnimation', "none", 'hit3start', true}, {'setAnimation', "none", 'hit3start', true},
{'sendDamage', "none", 33, 100, false, false}, {'sendDamage', "none", 33, 100, false, false},
{'addGFX',"sentDamage", 'hitGFX', 0.75, 0, true, false}, {'addGFX',"sentDamage", 'hitGFX', "target", 0.75, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'setAnimation', "none", 'hit3end', true}, {'setAnimation', "none", 'hit3end', true},
{'setAnimation', "none", 'idle', false}, {'setAnimation', "none", 'idle', false},
--{'wait', "none", 0.2},
--{'goTo', "none", "start", 0, 0},
{'wait', "none", 0.5} {'wait', "none", 0.5}
}, },

View file

@ -9,11 +9,11 @@ return {
{"wait", "none", 0.5}, {"wait", "none", 0.5},
{"setAnimation", "none", "spin", false}, {"setAnimation", "none", "spin", false},
{'playSFX', "none", 'spinrelease'}, {'playSFX', "none", 'spinrelease'},
{"dashForward", "none", 12, true}, {"goTo", "none", "target", 0, 0, 0.3, true},
{"sendDamageFromPos", "none", 0, 0, 120, 100, false, false, true}, {"sendDamage", "none", 120, 100, false, false},
{'addGFX', "sentDamage", 'hitGFX', 0, 0, true, false}, {'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'jumpBack', "none", true}, {'jumpBack', "none", 0.1, true},
{'setAnimation', "none", 'idle', false}, {'setAnimation', "none", 'idle', false},
} }
} }

View file

@ -13,11 +13,11 @@ return {
choregraphy = { -- the main attack choregraphy choregraphy = { -- the main attack choregraphy
{"setAnimation", "none", "spinjump", false}, {"setAnimation", "none", "spinjump", false},
{'playSFX', "none", 'jump'}, {'playSFX', "none", 'jump'},
{'jumpToCursor', 'none', true}, {'jumpTo', 'none', "target", 0.5, 0, 0, true},
{"sendDamageFromCursor", "none", 0, 0, 110, 100, false, true, true}, {"sendDamage", "none", 110, 100, false, true},
{'addGFX', "sentDamage", 'hitGFX', 0, 0, true, false}, {'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'jumpBack', "none", true}, {'jumpBack', "none", 0.1, true},
{'setAnimation', "none", 'idle', false}, {'setAnimation', "none", 'idle', false},
}, },