ravenous_typst/chapters/origines.typ

45 lines
1.0 KiB
Plaintext

#import "/setup/models/origin.typ": creature-title, render-creature
#import "/setup/setup.typ": theme
//----- DOCUMENT -----
#let origins = (
("Abyssal", "abyssal", 2),
("Baloth", "baloth", 2),
("Béhémoth", "behemoth", 2),
("Céléstial", "celestial", 2),
("Djieien", "djieien", 2),
("Dragon", "dragon", 2),
("Fenrir", "fenrir", 2),
("Guivre", "guivre", 2),
("Kraken", "kraken", 2),
("Léviathan", "leviathan", 2),
("Roc", "roc", 2),
("Tréant", "treant", 2),
("Yénuï", "yenui", 2),
)
#for (name, slug, count) in origins {
show heading: it => {
align(center)[#text(
size: creature-title.size,
weight: creature-title.weight,
fill: creature-title.fill,
)[#it.body]
#v(3pt)
#text(
size: creature-title.symbol-size,
fill: creature-title.symbol-fill,
)[
#theme.section-symbol
]]
}
heading(level: 3)[#name]
for i in range(1, count + 1) {
render-creature(
yaml("/data/src/origines/" + slug + "_" + str(i) + ".yaml"),
)
pagebreak()
}
}