Skip to content

Commit

Permalink
Remove stats from credits
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer authored Jan 14, 2023
1 parent ad19e96 commit 0212337
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 83 deletions.
41 changes: 0 additions & 41 deletions data/credits.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
28 changes: 1 addition & 27 deletions data/credits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 0 additions & 15 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 0212337

Please sign in to comment.