With the graph
Build Successful The Ravenous rulebook was built successfully.
Ravenous/ravenous_typst/pipeline/head This commit looks good
Details
Build Successful The Ravenous rulebook was built successfully.
Ravenous/ravenous_typst/pipeline/head This commit looks good
Details
This commit is contained in:
parent
4bf4ba1bd9
commit
9576d53fe3
|
|
@ -2,15 +2,109 @@
|
|||
#import "/setup/boxes.typ": *
|
||||
#import "@preview/fletcher:0.5.8" as fletcher: diagram, edge, node
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Cycle de prédation
|
||||
// -----------------------------------------------------------------------------
|
||||
#let bubble-size = 10mm
|
||||
#let species = (
|
||||
"Guivre",
|
||||
"Baloth",
|
||||
"Béhémoth",
|
||||
"Fenrir",
|
||||
"Yenuï",
|
||||
"Dragon",
|
||||
"Célestial",
|
||||
"Léviathan",
|
||||
"Kraken",
|
||||
"Abyssal",
|
||||
"Röc",
|
||||
)
|
||||
|
||||
#let predation-cycle = diagram.with(
|
||||
// Convert a polar coordinate to Fletcher's (x, y) grid coordinates.
|
||||
#let polar(radius, angle) = (
|
||||
radius * calc.cos(angle),
|
||||
radius * calc.sin(angle),
|
||||
)
|
||||
|
||||
// Position every entry of an array evenly on a true circle.
|
||||
#let circular-positions(items, radius: 4, rotation: 18deg) = {
|
||||
let count = items.len()
|
||||
|
||||
items
|
||||
.enumerate()
|
||||
.map(((i, item)) => {
|
||||
let angle = rotation + 360deg * i / count
|
||||
|
||||
(
|
||||
name: item,
|
||||
pos: polar(radius, angle),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
// Fletcher names need labels rather than dynamically constructed labels,
|
||||
// so keep the label mapping explicit while position generation stays generic.
|
||||
#let species-labels = (
|
||||
"Guivre": <guivre>,
|
||||
"Baloth": <baloth>,
|
||||
"Béhémoth": <behemoth>,
|
||||
"Fenrir": <fenrir>,
|
||||
"Yenuï": <yenui>,
|
||||
"Dragon": <dragon>,
|
||||
"Célestial": <celestial>,
|
||||
"Léviathan": <leviathan>,
|
||||
"Kraken": <kraken>,
|
||||
"Abyssal": <abyssal>,
|
||||
"Röc": <roc>,
|
||||
)
|
||||
|
||||
#let cycle-nodes(items, radius: 4, rotation: 18deg) = {
|
||||
circular-positions(
|
||||
items,
|
||||
radius: radius,
|
||||
rotation: rotation,
|
||||
).map(it => node(
|
||||
it.pos,
|
||||
[#text(size: 8pt)[#it.name]],
|
||||
name: species-labels.at(it.name),
|
||||
inset: 0pt,
|
||||
width: bubble-size,
|
||||
height: bubble-size,
|
||||
))
|
||||
}
|
||||
|
||||
#let cycle-edges(items) = {
|
||||
let count = items.len()
|
||||
|
||||
range(count).map(i => {
|
||||
let current = items.at(i)
|
||||
let next = items.at(calc.rem(i + 1, count))
|
||||
|
||||
edge(
|
||||
species-labels.at(current),
|
||||
species-labels.at(next),
|
||||
"-|>",
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
#let predation-cycle(
|
||||
items: species,
|
||||
radius: 2,
|
||||
rotation: 18deg,
|
||||
close: true,
|
||||
) = diagram(
|
||||
node-shape: circle,
|
||||
node-stroke: 0.8pt,
|
||||
node-fill: white,
|
||||
spacing: 18mm,
|
||||
spacing: 10mm,
|
||||
|
||||
..cycle-nodes(
|
||||
items,
|
||||
radius: radius,
|
||||
rotation: rotation,
|
||||
),
|
||||
|
||||
..if close { cycle-edges(items) } else {
|
||||
cycle-edges(items).slice(0, items.len() - 1)
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -27,31 +121,7 @@ Ces traits de caractère se retrouvent d'ailleurs auprès des chasseurs qui part
|
|||
Le cycle de prédation est un sujet très débattu au sein de la communauté des experts. Selon la plupart des érudits, celui-ci peut être résumé de la façon suivante :
|
||||
|
||||
#align(center)[
|
||||
#predation-cycle(
|
||||
node((0, -3), [Guivre], name: <guivre>),
|
||||
node((2, -2), [Baloth], name: <baloth>),
|
||||
node((3, 0), [Béhémoth], name: <behemoth>),
|
||||
node((3, 2), [Fenrir], name: <fenrir>),
|
||||
node((1.5, 3.5), [Yenuï], name: <yenui>),
|
||||
node((-0.5, 4), [Dragon], name: <dragon>),
|
||||
node((-2.5, 3), [Célestial], name: <celestial>),
|
||||
node((-3.5, 1), [Léviathan], name: <leviathan>),
|
||||
node((-3, -1), [Kraken], name: <kraken>),
|
||||
node((-2, -2.5), [Abyssal], name: <abyssal>),
|
||||
node((0, -4), [Röc], name: <roc>),
|
||||
|
||||
edge(<guivre>, <baloth>, "-|>"),
|
||||
edge(<baloth>, <behemoth>, "-|>"),
|
||||
edge(<behemoth>, <fenrir>, "-|>"),
|
||||
edge(<fenrir>, <yenui>, "-|>"),
|
||||
edge(<yenui>, <dragon>, "-|>"),
|
||||
edge(<dragon>, <celestial>, "-|>"),
|
||||
edge(<celestial>, <leviathan>, "-|>"),
|
||||
edge(<leviathan>, <kraken>, "-|>"),
|
||||
edge(<kraken>, <abyssal>, "-|>"),
|
||||
edge(<abyssal>, <roc>, "-|>"),
|
||||
edge(<roc>, <guivre>, "-|>"),
|
||||
)
|
||||
#predation-cycle()
|
||||
]
|
||||
|
||||
Cependant, il convient de lui associer un bémol important : selon les éléments, le stade d'évolution, le terrain, l'âge et l'expérience de la créature, le cycle de prédation peut être extrêmement différent, de plus de nombreuses sous-espèces n'obéissent tout simplement pas à cette règle.
|
||||
|
|
@ -63,19 +133,10 @@ Enfin, il faut aborder la guivre dans la pièce. Certaines espèces sont tout si
|
|||
node-shape: circle,
|
||||
node-stroke: 0.8pt,
|
||||
node-fill: white,
|
||||
spacing: 18mm,
|
||||
spacing: 8mm,
|
||||
|
||||
// Outer cycle
|
||||
node((0, -3), [Baloth], name: <baloth>),
|
||||
node((2, -2), [Béhémoth], name: <behemoth>),
|
||||
node((3, 0), [Fenrir], name: <fenrir>),
|
||||
node((3, 2), [Yenuï], name: <yenui>),
|
||||
node((1.5, 3.5), [Dragon], name: <dragon>),
|
||||
node((-0.5, 4), [Célestial], name: <celestial>),
|
||||
node((-2.5, 3), [Léviathan], name: <leviathan>),
|
||||
node((-3.5, 1), [Kraken], name: <kraken>),
|
||||
node((-3, -1), [Abyssal], name: <abyssal>),
|
||||
node((-1.5, -2.5), [Röc], name: <roc>),
|
||||
// Keep the other species evenly distributed around Guivre.
|
||||
..cycle-nodes(species.slice(1), rotation: 18deg, radius: 2),
|
||||
|
||||
// Guivre in the middle
|
||||
node(
|
||||
|
|
@ -83,18 +144,12 @@ Enfin, il faut aborder la guivre dans la pièce. Certaines espèces sont tout si
|
|||
[*Guivre*],
|
||||
name: <guivre>,
|
||||
stroke: 1.2pt,
|
||||
width: bubble-size,
|
||||
height: bubble-size,
|
||||
),
|
||||
|
||||
// Normal outer predation chain
|
||||
edge(<baloth>, <behemoth>, "-|>"),
|
||||
edge(<behemoth>, <fenrir>, "-|>"),
|
||||
edge(<fenrir>, <yenui>, "-|>"),
|
||||
edge(<yenui>, <dragon>, "-|>"),
|
||||
edge(<dragon>, <celestial>, "-|>"),
|
||||
edge(<celestial>, <leviathan>, "-|>"),
|
||||
edge(<leviathan>, <kraken>, "-|>"),
|
||||
edge(<kraken>, <abyssal>, "-|>"),
|
||||
edge(<abyssal>, <roc>, "-|>"),
|
||||
// The ordinary chain remains open because Guivre breaks the cycle.
|
||||
..cycle-edges(species.slice(1)).slice(0, species.len() - 2),
|
||||
|
||||
// Guivre believes everything is food
|
||||
edge(<guivre>, <baloth>, "-|>"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue