Finished the bestiairy
Build Successful The Ravenous rulebook and balance report were built successfully.
Ravenous/ravenous_typst/pipeline/head This commit looks good
Details
Build Successful The Ravenous rulebook and balance report were built successfully.
Ravenous/ravenous_typst/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f38c180185
commit
16c6205f62
|
|
@ -11,4 +11,11 @@ Sans être jalousement gardés parmis les chasseurs, ces bestiaires sont si impo
|
|||
|
||||
#pagebreak()
|
||||
|
||||
// #include "./Bestiaire/player_bestiaire.typ"
|
||||
// The regular book exposes only the public introductory sheet. The
|
||||
// player-handbook preset excludes this complete chapter for now.
|
||||
#import "/setup/models/creature.typ": render-player-creature
|
||||
#import "/setup/generation/creature-data.typ": player-creatures
|
||||
|
||||
#for creature in player-creatures {
|
||||
render-player-creature(creature)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 2ff86248f3e2666e9f1678117b9ef97c5aad2ec8
|
||||
Subproject commit e7bb093a505ac281921e0604ec64888c5caf0a70
|
||||
|
|
@ -97,6 +97,8 @@
|
|||
}
|
||||
#let section-title(title) = block(
|
||||
width: 100%,
|
||||
above: 0.35em,
|
||||
below: 0.35em,
|
||||
inset: (x: 5pt, y: 3pt),
|
||||
fill: theme.dark-gold,
|
||||
text(fill: theme.parchment-light, weight: "bold", title),
|
||||
|
|
@ -128,7 +130,6 @@
|
|||
|
||||
#let identity-table(creature) = {
|
||||
let fields = (
|
||||
("Nom", creature.name),
|
||||
("Dénomination", creature.denomination),
|
||||
("Calamité", creature.calamity),
|
||||
("Niveau de danger (HSE)", creature.danger-level),
|
||||
|
|
@ -160,10 +161,10 @@
|
|||
#let lore-and-rewards(creature) = {
|
||||
section-title("Description")
|
||||
text(size: 9pt, rich-text(creature.description))
|
||||
v(0.5em)
|
||||
v(0.35em)
|
||||
section-title("Annotations")
|
||||
text(size: 9pt, rich-text(creature.annotations))
|
||||
v(0.5em)
|
||||
v(0.35em)
|
||||
section-title("Récompenses")
|
||||
|
||||
let reward-rows = creature
|
||||
|
|
@ -207,10 +208,12 @@
|
|||
))
|
||||
.flatten()
|
||||
table(
|
||||
columns: (2fr, auto, auto, 1.5fr, 1.5fr, auto, auto, 1.5fr, 1.5fr),
|
||||
columns: (1.6fr, auto, auto, 1.7fr, 1.7fr, auto, auto, 1.7fr, 1.7fr),
|
||||
rows: (1.5em, 1.5em) + (2.5em,) * creature.body-parts.len() + (auto, auto),
|
||||
inset: (x: 4pt, y: 2pt),
|
||||
align: (x, y) => if (x == 3 or x == 4 or x == 7 or x == 8) and y > 1 {
|
||||
align: (x, y) => if x == 0 and y > 1 {
|
||||
left + horizon
|
||||
} else if (x == 3 or x == 4 or x == 7 or x == 8) and y > 1 {
|
||||
right + bottom
|
||||
} else if y >= creature.body-parts.len() + 2 {
|
||||
left + top
|
||||
|
|
@ -513,3 +516,17 @@
|
|||
}
|
||||
pagebreak()
|
||||
}
|
||||
|
||||
// Public bestiary entry: only the introductory creature sheet is exposed.
|
||||
#let render-player-creature(creature) = {
|
||||
heading(level: 2, creature.name)
|
||||
if present(creature.image) {
|
||||
align(center, image(creature.image, height: 5cm))
|
||||
identity-table(creature)
|
||||
} else {
|
||||
identity-table(creature)
|
||||
}
|
||||
v(1fr)
|
||||
lore-and-rewards(creature)
|
||||
pagebreak()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
#import "/setup/setup.typ": config_main
|
||||
#show: config_main
|
||||
#import "/setup/models/creature.typ": render-player-creature
|
||||
#import "/setup/generation/creature-data.typ": creature-by-id
|
||||
|
||||
#render-player-creature(creature-by-id(1))
|
||||
Loading…
Reference in New Issue