Creature model
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
839618087b
commit
6033898c3b
|
|
@ -30,7 +30,7 @@
|
|||
lang: "fr",
|
||||
fill: report-theme.ink,
|
||||
)
|
||||
set par(justify: true, leading: 0.65em, spacing: 0.75em)
|
||||
set par(justify: true, leading: 0.7em, spacing: 0.75em)
|
||||
set heading(numbering: report-numbering)
|
||||
|
||||
let heading-label(it) = if it.numbering == none { [] } else {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,64 @@
|
|||
// Representative record used until the creature database exporter is wired in.
|
||||
#let mock-arpaneris = (
|
||||
name: "Arpaneris commun",
|
||||
denomination: "Polus Insolentis",
|
||||
calamity: "Roc",
|
||||
danger-level: "2,5",
|
||||
image: "/images/bestiary/arpaneris_commun.jpg",
|
||||
habitat: "Plaines",
|
||||
dysmorphism: "Fort ; les femelles étaient encore considérées comme une autre espèce jusqu'à récemment.",
|
||||
colors: "Jaune brun",
|
||||
human-reaction: "Ignore les scions des calamités ; manifeste envers l'homme une curiosité envahissante.",
|
||||
variants: "Arpaneris diabolique (r), Arpaneris mélancolique (tr)",
|
||||
size: "2 à 3 m au garrot",
|
||||
traces: "Nombreuses marques de griffes et de bec, fientes et plumes.",
|
||||
habits: "Omnivore ; cherche surtout à se sustenter sans beaucoup réfléchir aux implications de sa diète.",
|
||||
description: [Doué d'un intellect limité, l'Arpaneris cherche principalement à se sustenter. Juvénile, il est peu sociable mais doté d'une curiosité sans bornes : il peut entrer dans des villes et villages afin d'en comprendre les mystères. Adulte, il consacre son temps à courtiser ses dames et à nourrir ses oisillons.],
|
||||
annotations: [Isolé et un peu désemparé, il devient extrêmement dangereux une fois adulte et défend farouchement son territoire.],
|
||||
master-notes: [Le profil donné est celui d'un juvénile. Celui d'un adulte est très différent et s'accompagne toujours d'au moins une femelle protégeant son partenaire. Son rôle est d'enseigner l'attaque chargée, l'interruption et le changement d'aggro.],
|
||||
blood: (base: 10, battle: 5, carve: 5),
|
||||
rewards: (
|
||||
(name: "Plume tectrice", category: "Composant", cost: "2", effect: "Isole efficacement du froid et conserve les odeurs."),
|
||||
(name: "Bec d'Arpaneris", category: "Trophée", cost: "4", effect: "Matériau léger adapté aux armes perforantes."),
|
||||
),
|
||||
body-parts: (
|
||||
(name: "Tête", p1: (threshold: (base: 5, modifier: $-3+2$), protection: (base: 9, armor: 3), integrity: 10, life: 110), p2: (threshold: (base: 4, modifier: $-3+2$), protection: (base: 9, armor: 3), integrity: 10, life: 110), resistances: ("+", "-", "-", "0", "-", "0", "0", "-", "0", "+", "++", "+", "++")),
|
||||
(name: "Torse", p1: (threshold: (base: 7, modifier: $-2+3$), protection: (base: 10, armor: 4), integrity: 10, life: 130), p2: (threshold: (base: 6, modifier: $-2+3$), protection: (base: 10, armor: 4), integrity: 10, life: 130), resistances: ("+", "0", "+", "0", "-", "+", "0", "-", "0", "+", "+", "0", "+")),
|
||||
(name: "Aile gauche", p1: (threshold: (base: 7, modifier: $-2+3$), protection: (base: 8, armor: 2), integrity: 8, life: 70), p2: (threshold: (base: 6, modifier: $-2+3$), protection: (base: 8, armor: 2), integrity: 8, life: 70), resistances: ("0", "-", "+", "0", "-", "0", "+", "-", "0", "+", "++", "+", "+")),
|
||||
(name: "Aile droite", p1: (threshold: (base: 7, modifier: $-2+3$), protection: (base: 8, armor: 2), integrity: 8, life: 70), p2: (threshold: (base: 6, modifier: $-2+3$), protection: (base: 8, armor: 2), integrity: 8, life: 70), resistances: ("0", "-", "+", "0", "-", "0", "+", "-", "0", "+", "++", "+", "+")),
|
||||
(name: "Pattes", p1: (threshold: (base: 6, modifier: $0$), protection: (base: 9, armor: 3), integrity: 9, life: 90), p2: (threshold: (base: 5, modifier: $0$), protection: (base: 9, armor: 3), integrity: 9, life: 90), resistances: ("+", "0", "+", "0", "0", "+", "0", "0", "0", "+", "+", "0", "+")),
|
||||
),
|
||||
initiatives: (
|
||||
(name: "i1", p1-value: 6, p1-actions: "2A", p2-value: 6, p2-actions: "2A"),
|
||||
(name: "i2", p1-value: 4, p1-actions: "2A", p2-value: 3, p2-actions: "2A"),
|
||||
),
|
||||
stats: (
|
||||
strength: 6, perception: 5, willpower: 5, alteration-resistance: 0,
|
||||
torque: 42, awareness: 4, fatigue: 20,
|
||||
movement: (walk: 6, trot: 18, run: 18, flight: 15),
|
||||
transcendental-resistance: 2, physical-bonus: 2, elemental-bonus: 2,
|
||||
),
|
||||
phases: (
|
||||
(name: "Phase 1 — Curiosité", groups: (
|
||||
(color: "PAS", description: "L'Arpaneris teste les chasseurs et cherche à se ménager une voie de fuite.", attacks: (
|
||||
(name: "Mépris du poulet", type: "PAS", timing: "∞", target: "S", fatigue-cost: "—", action-cost: "—", element: "—", fatigue-damage: "—", damage: "—", effects: "(Esquive) +1d à chaque phase ; +1d supplémentaire en P2.", parry: "—", dodge: "—"),
|
||||
(name: "Pocket sand", type: "BAD", timing: "i1!", target: "S", fatigue-cost: "5F", action-cost: "1A", element: "Terre", fatigue-damage: "—", damage: "10 / 2r", effects: "Projette du terrain ; 2 bris d'armure.", parry: 6, dodge: 8),
|
||||
)),
|
||||
(color: "ASE", description: "Une attaque chargée lisible, destinée à apprendre l'interruption.", attacks: (
|
||||
(name: "Piqué maladroit", type: "ASE", timing: "i1→i2", target: "Z", fatigue-cost: "8F", action-cost: "2A", element: "Vent", fatigue-damage: 4, damage: "18 / 3r", effects: "S'interrompt si une aile perd de l'intégrité pendant la charge.", parry: 8, dodge: 7),
|
||||
)),
|
||||
)),
|
||||
(name: "Phase 2 — Panique", groups: (
|
||||
(color: "MVT", description: "Sous la moitié de ses PV, l'Arpaneris alterne fuite et ruades.", attacks: (
|
||||
(name: "Battement affolé", type: "MVT", timing: "i1", target: "Z", fatigue-cost: "4F", action-cost: "1A", element: "Vent", fatigue-damage: 3, damage: "8 / 1r", effects: "Recule de 6 m et repousse les cibles de 3 m.", parry: 7, dodge: 6),
|
||||
(name: "Ruade territoriale", type: "CLV", timing: "i2!", target: "Z", fatigue-cost: "6F", action-cost: "1A", element: "—", fatigue-damage: 2, damage: "16 / 2r", effects: "La cible principale change après une parade intégrale.", parry: 7, dodge: 7),
|
||||
)),
|
||||
)),
|
||||
),
|
||||
battle-plan: [
|
||||
L'Arpaneris commence à distance moyenne et observe le groupe. Il emploie _Pocket sand_ si personne ne le presse, puis annonce son _Piqué maladroit_. Les chasseurs doivent identifier la charge et frapper une aile pour l'interrompre. En phase 2, il cherche à quitter la mêlée avec _Battement affolé_ ; un tank qui pare entièrement sa _Ruade territoriale_ peut transmettre l'aggro et créer une fenêtre de poursuite.
|
||||
|
||||
Le combat est gagné lorsqu'il fuit, tombe inconscient ou perd l'usage de ses deux ailes. Un adulte attiré par un combat trop long constitue une complication, pas une seconde phase.
|
||||
],
|
||||
intent-graph: none,
|
||||
)
|
||||
|
|
@ -139,7 +139,12 @@ Le seuil donné tient toujours compte du malus de -2 imposé lorsque l'on vise u
|
|||
)
|
||||
]
|
||||
|
||||
// The bestiary itself is intentionally omitted until its sheets are ported.
|
||||
// First data-driven creature sheet. The mock record mirrors the future DB
|
||||
// export, so replacing it does not require changing the presentation code.
|
||||
#import "/setup/models/creature.typ": render-master-creature
|
||||
#import "/data/src/creatures/mock_arpaneris.typ": mock-arpaneris
|
||||
|
||||
#render-master-creature(mock-arpaneris)
|
||||
|
||||
// Keep the automatically appended glossary separate from the Bellua legend.
|
||||
#pagebreak()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,295 @@
|
|||
// Data-driven master-handbook creature sheet.
|
||||
//
|
||||
// The renderer deliberately accepts plain Typst dictionaries. This keeps the
|
||||
// presentation independent from the database/export format that will replace
|
||||
// the mock record later.
|
||||
|
||||
#import "../theme/variables.typ": theme
|
||||
|
||||
#let label-fill = (
|
||||
ATK: rgb("#c95f5f"), MVT: rgb("#658db5"), DEF: rgb("#73a16f"),
|
||||
PAS: rgb("#a9c89c"), REV: rgb("#73a16f"), CLM: rgb("#496b4a"),
|
||||
TRA: rgb("#d79555"), ASE: rgb("#c95f5f"), STA: rgb("#f7f5ef"),
|
||||
CMB: rgb("#c95f5f"), FLR: rgb("#c95f5f"), GRB: rgb("#c95f5f"),
|
||||
MXU: rgb("#c95f5f"), ADF: rgb("#c95f5f"), BYP: rgb("#873b3b"),
|
||||
TBU: rgb("#873b3b"), TBZ: rgb("#873b3b"), TSH: rgb("#873b3b"),
|
||||
CLV: rgb("#c95f5f"), AOE: rgb("#c95f5f"), WID: rgb("#c95f5f"),
|
||||
WIP: rgb("#873b3b"), SZO: rgb("#f7f5ef"), SIT: rgb("#f7f5ef"),
|
||||
SRG: rgb("#8d6799"), HRG: rgb("#8d6799"), BAD: rgb("#d79555"),
|
||||
BIS: rgb("#873b3b"),
|
||||
)
|
||||
|
||||
#let present(value) = value != none and value != "" and value != ()
|
||||
#let cell(value, size: none) = if size == none { [#value] } else { text(size: size, value) }
|
||||
#let threshold(value) = [
|
||||
$#value.base$
|
||||
#text(weight: "light", size: 0.6em)[$(#value.modifier)$]
|
||||
]
|
||||
#let protection(value) = $#value.base [#value.armor]$
|
||||
#let small-value(value) = text(weight: "light", size: 0.6em, $#value$)
|
||||
#let resistance(value) = {
|
||||
if value == "++" { $++$ }
|
||||
else if value == "+" { $+$ }
|
||||
else if value == "--" { $--$ }
|
||||
else if value == "-" { $-$ }
|
||||
else { $ $ }
|
||||
}
|
||||
#let element-icon(path, height: 0.75em, baseline: 1.1pt) = box(
|
||||
height: height,
|
||||
baseline: baseline,
|
||||
inset: 0pt,
|
||||
image(path),
|
||||
)
|
||||
#let section-title(title) = block(
|
||||
width: 100%,
|
||||
inset: (x: 5pt, y: 3pt),
|
||||
fill: theme.dark-gold,
|
||||
text(fill: theme.parchment-light, weight: "bold", title),
|
||||
)
|
||||
|
||||
#let identity-table(creature) = {
|
||||
let fields = (
|
||||
("Nom", creature.name),
|
||||
("Dénomination", creature.denomination),
|
||||
("Calamité", creature.calamity),
|
||||
("Niveau de danger (HSE)", creature.danger-level),
|
||||
("Habitat", creature.habitat),
|
||||
("Dysmorphisme", creature.dysmorphism),
|
||||
("Couleurs", creature.colors),
|
||||
("Réaction à l'homme", creature.human-reaction),
|
||||
("Variantes", creature.variants),
|
||||
("Taille", creature.size),
|
||||
("Traces", creature.traces),
|
||||
("Mœurs", creature.habits),
|
||||
).filter(pair => present(pair.at(1)))
|
||||
let rows = fields.map(pair => (
|
||||
table.cell(align: left, text(weight: "bold", pair.at(0))),
|
||||
table.cell(align: left, pair.at(1)),
|
||||
)).flatten()
|
||||
|
||||
table(
|
||||
columns: 2,
|
||||
column-gutter: 10pt,
|
||||
inset: (x: 0pt, y: 2.5pt),
|
||||
stroke: none,
|
||||
..rows,
|
||||
)
|
||||
}
|
||||
|
||||
#let lore-and-rewards(creature) = {
|
||||
section-title("Description")
|
||||
text(size: 9pt, creature.description)
|
||||
v(0.5em)
|
||||
section-title("Annotations")
|
||||
text(size: 9pt, creature.annotations)
|
||||
v(0.5em)
|
||||
section-title("Récompenses")
|
||||
|
||||
let reward-rows = creature.rewards.map(reward => (
|
||||
reward.name,
|
||||
reward.category,
|
||||
reward.cost,
|
||||
reward.effect,
|
||||
)).flatten()
|
||||
table(
|
||||
columns: (1.1fr, 0.8fr, 0.55fr, 2.4fr),
|
||||
inset: (x: 4pt, y: 3pt),
|
||||
stroke: none,
|
||||
table.header([*Nom*], [*Catégorie*], [*Coût*], [*Effet*]),
|
||||
[Sang], [Base / combat / dépeçage], [], [#creature.blood.base / #creature.blood.battle / #creature.blood.carve],
|
||||
..reward-rows,
|
||||
)
|
||||
}
|
||||
|
||||
#let body-table(creature) = {
|
||||
let rows = creature.body-parts.map(part => (
|
||||
text(size: 8pt, part.name),
|
||||
threshold(part.p1.threshold), protection(part.p1.protection), small-value(part.p1.integrity), small-value(part.p1.life),
|
||||
threshold(part.p2.threshold), protection(part.p2.protection), small-value(part.p2.integrity), small-value(part.p2.life),
|
||||
)).flatten()
|
||||
table(
|
||||
columns: (2fr, auto, auto, 1.5fr, 1.5fr, auto, auto, 1.5fr, 1.5fr),
|
||||
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 {
|
||||
right + bottom
|
||||
} else if y >= creature.body-parts.len() + 2 {
|
||||
left + top
|
||||
} else {
|
||||
center + horizon
|
||||
},
|
||||
stroke: none,
|
||||
table.vline(x: 5, start: 1, stroke: 0.5pt + theme.border),
|
||||
table.header(
|
||||
[], table.cell(colspan: 4, align: center)[P1], table.cell(colspan: 4, align: center)[P2],
|
||||
[], [Seuil], [Prot], [Intégrité], [PV], [Seuil], [Prot], [Intégrité], [PV],
|
||||
),
|
||||
table.hline(stroke: 0.5pt + theme.border),
|
||||
..rows,
|
||||
table.hline(stroke: 0.5pt + theme.border),
|
||||
table.cell(colspan: 9)[*Notes*],
|
||||
table.cell(colspan: 9, text(size: 8pt, creature.master-notes)),
|
||||
table.hline(stroke: 0.5pt + theme.border),
|
||||
)
|
||||
}
|
||||
|
||||
#let resistance-table(creature) = {
|
||||
let headers = (
|
||||
[Res],
|
||||
element-icon("/images/icons/slash.svg", height: 0.65em, baseline: 0.5pt),
|
||||
element-icon("/images/icons/pierce.svg", height: 0.7em, baseline: 0.7pt),
|
||||
element-icon("/images/icons/gavel-solid-full.svg", height: 0.7em, baseline: 0.5pt),
|
||||
element-icon("/images/icons/sun-solid-full.svg"),
|
||||
element-icon("/images/icons/fire-flame-curved-solid-full.svg"),
|
||||
element-icon("/images/icons/mountain-solid-full.svg"),
|
||||
element-icon("/images/icons/leaf-solid-full.svg"),
|
||||
element-icon("/images/icons/water-solid-full.svg"),
|
||||
element-icon("/images/icons/moon-solid-full.svg"),
|
||||
element-icon("/images/icons/droplet-solid-full.svg", baseline: 0pt),
|
||||
element-icon("/images/icons/wind-solid-full.svg"),
|
||||
element-icon("/images/icons/icicles-solid-full.svg"),
|
||||
element-icon("/images/icons/lightning-fill.svg"),
|
||||
)
|
||||
let rows = creature.body-parts.map(part => (
|
||||
smallcaps(part.name), ..part.resistances.map(resistance),
|
||||
)).flatten()
|
||||
[
|
||||
#show table.cell: it => if it.y > 0 { text(size: 9pt, it) } else { text(size: 12pt, it) }
|
||||
#table(
|
||||
columns: (25%,) + (75% / 13,) * 13,
|
||||
row-gutter: 1.5pt,
|
||||
inset: (x: 2pt, y: 3.5pt),
|
||||
align: center + horizon,
|
||||
stroke: none,
|
||||
table.header(..headers),
|
||||
table.hline(stroke: 0.5pt + theme.border),
|
||||
..rows,
|
||||
)
|
||||
]
|
||||
}
|
||||
|
||||
#let statistics-table(creature) = {
|
||||
let s = creature.stats
|
||||
let rows = ()
|
||||
for (index, init) in creature.initiatives.enumerate() {
|
||||
rows += (cell(init.name), cell(init.p1-value), cell(init.p1-actions), cell(init.p2-value), cell(init.p2-actions))
|
||||
if index == 0 {
|
||||
rows += (
|
||||
[], cell(s.strength), cell(s.perception), cell(s.willpower), cell(s.alteration-resistance), cell(s.torque), cell(s.awareness), cell(s.fatigue),
|
||||
[], cell(s.movement.walk), cell(s.movement.trot), cell(s.movement.run), cell(s.movement.flight),
|
||||
[], cell(s.transcendental-resistance), cell(s.physical-bonus), cell(s.elemental-bonus),
|
||||
)
|
||||
} else {
|
||||
rows += ([],) * 17
|
||||
}
|
||||
}
|
||||
[
|
||||
#show table.cell: it => if it.y == 0 {
|
||||
text(size: 12pt, it)
|
||||
} else if it.y == 1 {
|
||||
text(size: 7pt, align(center + bottom, rotate(-90deg, it, reflow: true)))
|
||||
} else { it }
|
||||
#align(center)[
|
||||
#table(
|
||||
columns: (100% / 22,) * 22,
|
||||
inset: (x: 1.5pt, y: 2pt),
|
||||
align: (x, y) => if y == 1 { right + horizon } else { center + horizon },
|
||||
stroke: none,
|
||||
table.header(
|
||||
[], table.cell(colspan: 2)[P1], table.cell(colspan: 2)[P2], [],
|
||||
table.cell(colspan: 7)[Stats], [], table.cell(colspan: 4)[Mouvement], [], table.cell(colspan: 3)[Extra],
|
||||
table.hline(start: 1, end: 5, stroke: 0.5pt + theme.border),
|
||||
table.hline(start: 6, end: 13, stroke: 0.5pt + theme.border),
|
||||
table.hline(start: 14, end: 18, stroke: 0.5pt + theme.border),
|
||||
table.hline(start: 19, end: 22, stroke: 0.5pt + theme.border),
|
||||
[Initiative], [Valeur], [Action], [Valeur], [Actions], [],
|
||||
[Force], [Perception], [Volonté], [Rés. Alt.], [Torque], [Vigilance], [Fatigue], [],
|
||||
[Marche], [Trot], [Course], [Vol], [], [Rés. Trans.], [Bon. Phy.], [Bon. Élém.],
|
||||
),
|
||||
..rows,
|
||||
)
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
#let attack-table(creature) = {
|
||||
let contents = ()
|
||||
for phase in creature.phases {
|
||||
contents.push(table.cell(colspan: 13, fill: theme.dark-gold, text(fill: white, weight: "bold", phase.name)))
|
||||
for group in phase.groups {
|
||||
// Colour belongs to the complete skill group, not to an individual row:
|
||||
// multi-line attacks and their explanation therefore read as one unit.
|
||||
let group-color-key = group.at(
|
||||
"color",
|
||||
default: group.attacks.first().type,
|
||||
)
|
||||
let group-color = if type(group-color-key) == color {
|
||||
group-color-key
|
||||
} else {
|
||||
label-fill.at(group-color-key, default: white)
|
||||
}
|
||||
for attack in group.attacks {
|
||||
contents += (
|
||||
table.cell(fill: group-color)[],
|
||||
cell(attack.name), cell(attack.type), cell(attack.timing), cell(attack.target),
|
||||
cell(attack.fatigue-cost), cell(attack.action-cost), cell(attack.element),
|
||||
cell(attack.fatigue-damage), cell(attack.damage), cell(attack.effects),
|
||||
cell(attack.parry), cell(attack.dodge),
|
||||
)
|
||||
}
|
||||
if present(group.description) {
|
||||
contents += (
|
||||
table.cell(fill: group-color)[],
|
||||
table.cell(colspan: 12, inset: 4pt, text(size: 8pt, group.description)),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
table(
|
||||
columns: (0.12fr, 2fr, auto, auto, auto, auto, auto, auto, auto, 1fr, 3fr, auto, auto),
|
||||
inset: (x: 2pt, y: 2.5pt),
|
||||
align: (x, _) => if x == 1 or x == 10 { left } else { center },
|
||||
stroke: none,
|
||||
[], [], [], [], [], table.cell(colspan: 2)[Coûts], [], table.cell(colspan: 2)[Dégâts], [], table.cell(colspan: 2)[Seuils],
|
||||
table.header([], [], [Type], [Timing], [Ciblage], [Fatigue], [Action], [Élément], [Fatigue], [Normaux], [Effets], [Parade], [Esquive]),
|
||||
..contents,
|
||||
)
|
||||
}
|
||||
|
||||
#let render-master-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()
|
||||
body-table(creature)
|
||||
v(0.7em)
|
||||
resistance-table(creature)
|
||||
v(1fr)
|
||||
statistics-table(creature)
|
||||
|
||||
if creature.phases.len() > 0 {
|
||||
pagebreak()
|
||||
[
|
||||
#show table.cell: it => if it.y == 1 {
|
||||
text(size: 6pt, align(center + bottom, rotate(-90deg, it, reflow: true)))
|
||||
} else { text(size: 8pt, it) }
|
||||
#attack-table(creature)
|
||||
]
|
||||
}
|
||||
|
||||
pagebreak()
|
||||
section-title("Plan de combat")
|
||||
block(inset: 8pt, text(size: 9pt, creature.battle-plan))
|
||||
if present(creature.intent-graph) {
|
||||
v(1em)
|
||||
section-title("Graphique d'intentions")
|
||||
block(inset: 8pt, creature.intent-graph)
|
||||
}
|
||||
}
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
|
||||
set par(
|
||||
justify: true,
|
||||
leading: 0.7em,
|
||||
leading: 0.75em,
|
||||
first-line-indent: 1em,
|
||||
spacing: 0.9em,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue