diff --git a/data/credits.hbs b/data/credits.hbs index 700cce4..6b03c47 100644 --- a/data/credits.hbs +++ b/data/credits.hbs @@ -73,44 +73,3 @@ {{~#text x=-5.0}}{{this}}{{/text}} {{/each}} {{/block}} - -{{#block at=150.0 speed=0.6}} - {{~#text x=5.0}} - {{#style color="999999ff"}}Stats{{/style}} - {{/text}} - {{~#text x=3.5 anchor="left" align="left" spacing=0.8}}{{#style size=0.9}}Time:{{/style}}{{/text}} - {{~#text x=6.5 anchor="right" align="right" spacing=0}}{{#style size=0.9 color="ade1ffff"}}$(14,100,tsec){{/style}}{{/text}} - - {{~#text x=3.5 anchor="left" align="left" spacing=0.8}}{{#style size=0.9}}Deaths:{{/style}}{{/text}} - {{~#text x=6.5 anchor="right" align="right" spacing=0}}{{#style size=0.9 color="ade1ffff"}}$(14,101){{/style}}{{/text}} - - {{~#text x=3.5 anchor="left" align="left" spacing=0.8}}{{#style size=0.9}}Time lost to deaths:{{/style}}{{/text}} - {{~#text x=6.5 anchor="right" align="right" spacing=0}}{{#style size=0.9 color="ade1ffff"}}$(14,105,tsec){{/style}}{{/text}} - - {{~#text x=3.5 anchor="left" align="left" spacing=0.8}}{{#style size=0.9}}Warps used:{{/style}}{{/text}} - {{~#text x=6.5 anchor="right" align="right" spacing=0}}{{#style size=0.9 color="ade1ffff"}}$(14,106){{/style}}{{/text}} - - {{~#text x=3.5 anchor="left" align="left" spacing=0.8}}{{#style size=0.9}}Global PPM:{{/style}}{{/text}} - {{~#text x=6.5 anchor="right" align="right" spacing=0}}{{#style size=0.9 color="ade1ffff"}}$(14,100,ppm){{/style}}{{/text}} - - {{~#text x=3.5 anchor="left" align="left" spacing=0.8}}{{#style size=0.9}}Peak PPM:{{/style}}{{/text}} - {{~#text x=6.5 anchor="right" align="right" spacing=0}}{{#style size=0.9 color="ade1ffff"}}$(14,107,ppm){{/style}}{{/text}} - {{~#text x=6.5 anchor="right" align="right" spacing=0.65}}{{#style size=0.8 color="ade1ffff"}}$(14,108) pickups at $(14,107,tsec){{/style}}{{/text}} - - {{#zones}} - {{~#text x=5.0 spacing=2}} - {{#style color="999999ff" size=0.9}}{{this.name}}{{/style}} - {{/text}} - {{~#text x=4.0 anchor="left" align="left" spacing=0.8}}{{#style size=0.8}}Time spent:{{/style}}{{/text}} - {{~#text x=6.0 anchor="right" align="right" spacing=0}}{{#style size=0.8 color="ade1ffff"}}$(14,{{this.time_spent}},tsec){{/style}}{{/text}} - - {{~#text x=4.0 anchor="left" align="left" spacing=0.8}}{{#style size=0.8}}Deaths:{{/style}}{{/text}} - {{~#text x=6.0 anchor="right" align="right" spacing=0}}{{#style size=0.8 color="ade1ffff"}}$(14,{{this.deaths}}){{/style}}{{/text}} - - {{~#text x=4.0 anchor="left" align="left" spacing=0.8}}{{#style size=0.8}}Pickups:{{/style}}{{/text}} - {{~#text x=6.0 anchor="right" align="right" spacing=0}}{{#style size=0.8 color="ade1ffff"}}$(14,{{this.pickups}},pcnt){{/style}}{{/text}} - - {{~#text x=4.0 anchor="left" align="left" spacing=0.8}}{{#style size=0.8}}PPM:{{/style}}{{/text}} - {{~#text x=6.0 anchor="right" align="right" spacing=0}}{{#style size=0.8 color="ade1ffff"}}$(14,{{this.time_spent}},ppm){{/style}}{{/text}} - {{/zones}} -{{/block}} diff --git a/data/credits.yaml b/data/credits.yaml index f125051..f78b35f 100644 --- a/data/credits.yaml +++ b/data/credits.yaml @@ -113,30 +113,4 @@ betatesters: - Vaiin - Valca - yoburg -- Zackonark - -zones: -- name: Marsh - id: 0 -- name: Hollow - id: 1 -- name: Glades - id: 2 -- name: Wellspring - id: 3 -- name: Pools - id: 4 -- name: Burrows - id: 5 -- name: Reach - id: 6 -- name: Woods - id: 7 -- name: Depths - id: 8 -- name: Wastes - id: 9 -- name: Ruins - id: 10 -- name: Willow - id: 11 +- Zackonark \ No newline at end of file diff --git a/src/index.js b/src/index.js index 1e66c0c..6ef46eb 100644 --- a/src/index.js +++ b/src/index.js @@ -103,20 +103,5 @@ Handlebars.registerHelper('two_columns', function (context, options) { }) }) -Handlebars.registerHelper('zones', function(options) { - let ret = ""; - - for (const zone of data.zones) { - ret = ret + options.fn({ - ...zone, - time_spent: zone.id, - deaths: zone.id + 20, - pickups: zone.id, - }) - } - - return ret; -}); - await fs.promises.writeFile('./credits', template(data))