X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=test-data%2Fcapsules.l2s;h=968b51bd1c3208c6f7c34684ffe5d7adfccb1103;hb=c5e56f45e08fcc6c4dceb586ce3d671a3f3907ab;hp=a4f525ec444f0595956ec09610217dd8c6d05f13;hpb=60e0fe29ce6cd033edc78b181d9d07fa72c11172;p=l2e.git diff --git a/test-data/capsules.l2s b/test-data/capsules.l2s index a4f525e..968b51b 100644 --- a/test-data/capsules.l2s +++ b/test-data/capsules.l2s @@ -1,11 +1,39 @@ -Sprite flashSprite { +include "items.l2h" + +Sprite flashSprite1 { image: :"flash.png", size: <96, 96> } +Sprite flashSprite2 { + image: :"flash.png", + size: <96, 96>, + offset: <96, 0> +} +Sprite flashSprite3 { + image: :"flash.png", + size: <96, 96>, + offset: <192, 0> +} +Sprite flashSprite4 { + image: :"flash.png", + size: <96, 96>, + offset: <288, 0> +} +Sprite flashSpriteM { + image: :"flash.png", + size: <96, 96>, + offset: <384, 0> +} export Capsule flash { name: "Flash", alignment: "LIGHT", + alignmentCursor: <-32, 0>, + alignmentSprite: Sprite { + image: :"capsule-sprites.png", + size: <32, 32>, + offset: <0, 96> + }, maxHealth: 5, stats: Stats { atp: 12, @@ -17,10 +45,143 @@ export Capsule flash { mgr: 11 }, classes: [ CapsuleClass + { + name: "1 TODO", + tribe: "Shaggy", + battleSprite: flashSprite1, + meleeAnimation: SimpleAnimation { + sprite: Sprite { + image: :"melee-maxim.png", + size: <96,96> + }, + frametime: 66, // two "frames" + framecount: 4 + }, + attackAnimation: ComplexAnimation { + sprite: flashSprite1, + frametime: fourFramesTime, + repeat: false, + frames: + [ ComplexAnimationFrame + { column: 0, row: 1, disposition: < 0, -16> }, + { column: 0, row: 0, disposition: < 0, -16> }, + { column: 0, row: 1, disposition: < 0, -16> }, + { column: 0, row: 0, disposition: < 0, -16> } + ] + } + }, + { + name: "2 TODO", + tribe: "Sprite", + battleSprite: flashSprite2, + meleeAnimation: SimpleAnimation { + sprite: Sprite { + image: :"melee-maxim.png", + size: <96,96> + }, + frametime: 66, // two "frames" + framecount: 4 + }, + attackAnimation: ComplexAnimation { + sprite: flashSprite2, + frametime: fourFramesTime, + repeat: false, + frames: + [ ComplexAnimationFrame + { column: 0, row: 1, disposition: < 0, -16> }, + { column: 0, row: 0, disposition: < 0, -16> }, + { column: 0, row: 1, disposition: < 0, -16> }, + { column: 0, row: 0, disposition: < 0, -16> } + ] + }, + healthBoost: 208, + statBoost: Stats { + atp: 38, + dfp: 71, + str: 24, + agl: 78, + int: 195, + gut: 12, // TODO: this is probably higher, but clipped at 199 + mgr: 135 + } + }, + { + name: "3 TODO", + tribe: "Cupid", + battleSprite: flashSprite3, + meleeAnimation: SimpleAnimation { + sprite: Sprite { + image: :"melee-maxim.png", + size: <96,96> + }, + frametime: 66, // two "frames" + framecount: 4 + }, + attackAnimation: ComplexAnimation { + sprite: flashSprite3, + frametime: fourFramesTime, + repeat: false, + frames: + [ ComplexAnimationFrame + { column: 0, row: 1, disposition: < 0, -16> }, + { column: 0, row: 0, disposition: < 0, -16> }, + { column: 0, row: 1, disposition: < 0, -16> }, + { column: 0, row: 0, disposition: < 0, -16> } + ] + }, + healthBoost: 208, + statBoost: Stats { + atp: 38, + dfp: 71, + str: 24, + agl: 78, + int: 195, + gut: 12, // TODO: this is probably higher, but clipped at 199 + mgr: 135 + } + }, { name: "4", tribe: "Twinkle", - battleSprite: flashSprite, + battleSprite: flashSprite4, + meleeAnimation: SimpleAnimation { + sprite: Sprite { + image: :"melee-maxim.png", + size: <96,96> + }, + frametime: 66, // two "frames" + framecount: 4 + }, + attackAnimation: ComplexAnimation { + sprite: flashSprite4, + frametime: fourFramesTime, + repeat: false, + frames: + [ ComplexAnimationFrame + { column: 0, row: 1, disposition: < 0, -16> }, + { column: 0, row: 0, disposition: < 0, -16> }, + { column: 0, row: 1, disposition: < 0, -16> }, + { column: 0, row: 0, disposition: < 0, -16> } + ] + }, + upgradeItem: darkFruitItem, + upgradeClass: 4, + hunger: 0, + healthBoost: 208, + statBoost: Stats { + atp: 38, + dfp: 71, + str: 24, + agl: 78, + int: 195, + gut: 12, // TODO: this is probably higher, but clipped at 199 + mgr: 135 + } + }, + { + name: "M TODO", + tribe: "Twinkle", + battleSprite: flashSpriteM, meleeAnimation: SimpleAnimation { sprite: Sprite { image: :"melee-maxim.png", @@ -30,7 +191,7 @@ export Capsule flash { framecount: 4 }, attackAnimation: ComplexAnimation { - sprite: flashSprite, + sprite: flashSpriteM, frametime: fourFramesTime, repeat: false, frames: @@ -41,6 +202,9 @@ export Capsule flash { { column: 0, row: 0, disposition: < 0, -16> } ] }, + upgradeItem: holyFruitItem, + upgradeClass: 3, + hunger: 0, healthBoost: 208, statBoost: Stats { atp: 38,