Finished icons & more data analisys

This commit is contained in:
Dandaedre 2026-08-21 01:08:30 +02:00
parent f1ccb44ccd
commit 6d9b0b5a17
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
15 changed files with 203 additions and 13 deletions

View File

@ -4,7 +4,7 @@
custom:
icon: true
short:
typst: 'box(height: 0.65em, baseline: 0.5pt, inset: 0pt, image("/images/icons/slash.png"))'
typst: 'box(height: 0.65em, baseline: 0.5pt, inset: 0pt, image("/images/icons/slash.svg"))'
long: Tranchant
description: "Type de dégât physique décrivant les attaques portées avec des objets acérés visant à couper leur cible."
group: Dégâts physiques
@ -13,7 +13,7 @@
custom:
icon: true
short:
typst: 'box(height: 0.7em, baseline: 0.7pt, inset: 0pt, image("/images/icons/pierce.png"))'
typst: 'box(height: 0.7em, baseline: 0.7pt, inset: 0pt, image("/images/icons/pierce.svg"))'
long: Perçant
description: "Type de dégât physique décrivant les attaques portées avec des objets pointus cherchant à pénétrer les défences de leur cible."
group: Dégâts physiques
@ -130,7 +130,7 @@
custom:
icon: true
short:
typst: 'box(height: 0.75em, baseline: 1.1pt, inset: 0pt, image("/images/icons/existence.png"))'
typst: 'box(height: 0.75em, baseline: 1.1pt, inset: 0pt, image("/images/icons/existence.svg"))'
long: Existence
description: >
Dégâts absolus, ces dégâts ignorent toute forme de résistance, ces attaques ne peuvent être parées ou esquivées

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -6,7 +6,7 @@
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,108.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
fill="#ea1223" stroke="none">
<path d="M526 1051 c-3 -5 -20 -51 -36 -102 -17 -52 -71 -175 -119 -274 -102
-205 -121 -262 -121 -355 0 -139 67 -237 190 -278 82 -28 139 -28 220 0 124
44 190 139 190 278 0 92 -19 149 -116 345 -46 94 -97 213 -115 265 -17 52 -35

Before

Width:  |  Height:  |  Size: 796 B

After

Width:  |  Height:  |  Size: 796 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

View File

@ -6,7 +6,7 @@
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,232.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
fill="#dcab35" stroke="none">
<path d="M885 2170 c-38 -5 -114 -24 -167 -41 -329 -106 -573 -370 -670 -727
-30 -111 -30 -353 0 -464 78 -288 274 -533 527 -660 158 -80 360 -117 535 -99
58 6 122 16 143 22 35 9 37 12 38 52 0 23 4 80 8 127 l7 85 -73 76 -73 76 57

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

View File

@ -6,7 +6,7 @@
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,286.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
fill="#1d592e" stroke="none">
<path d="M1345 2708 c-258 -228 -599 -387 -917 -430 l-87 -11 5 -66 c2 -36 9
-147 14 -246 11 -173 49 -484 69 -553 7 -24 7 -34 -2 -37 -7 -3 -70 -11 -142
-20 -185 -22 -261 -36 -244 -45 8 -4 64 -18 124 -31 100 -21 133 -22 360 -20

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 781 B

View File

@ -1,3 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" style="background: #ffffff; background-color: var(--ge-adaptive-bg, #ffffff); color-scheme: light dark;" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="305px" height="303px" viewBox="0 0 305 303" id="ge-svg-bXuaXpQy0afmMWvKHOzG"><style type="text/css">@supports (color: light-dark(#000, #fff)) { #ge-svg-bXuaXpQy0afmMWvKHOzG { --ge-adaptive-bg: light-dark(#ffffff, var(--ge-dark-color, #121212)); } }</style><defs/><rect fill="#ffffff" style="fill: var(--ge-adaptive-bg, #ffffff);" width="100%" height="100%" x="0" y="0"/><g><g data-cell-id="0"><g data-cell-id="1"><g data-cell-id="VWNVXCt4D-a2G1M2WzpA-1"><g transform="translate(0.5,0.5)"><path d="M 88.2 211.9 L 255.18 44.92" fill="none" stroke="#000000" style="stroke: rgb(0, 0, 0);" stroke-width="25" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 268.44 31.66 L 259.6 58.18 L 255.18 44.92 L 241.92 40.5 Z" fill="#000000" style="fill: rgb(0, 0, 0); stroke: rgb(0, 0, 0);" stroke="#000000" stroke-width="25" stroke-miterlimit="10" pointer-events="all"/></g></g><g data-cell-id="VWNVXCt4D-a2G1M2WzpA-3"><g><path d="M 48.2 181.9 L 78.2 181.9 L 78.2 181.9 L 108.2 221.9 L 78.2 261.9 L 78.2 261.9 L 48.2 261.9 L 78.2 221.9 Z" fill="#ffffff" style="fill: light-dark(rgb(255, 255, 255), rgb(0, 0, 0));" stroke="none" transform="rotate(-45,78.2,221.9)" pointer-events="all"/></g></g><g data-cell-id="VWNVXCt4D-a2G1M2WzpA-9"><g><path d="M 18.2 211.9 L 48.2 211.9 L 48.2 211.9 L 78.2 251.9 L 48.2 291.9 L 48.2 291.9 L 18.2 291.9 L 48.2 251.9 Z" fill="#ffffff" style="fill: light-dark(rgb(255, 255, 255), rgb(0, 0, 0));" stroke="none" transform="rotate(-45,48.2,251.9)" pointer-events="all"/></g></g></g></g></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="305" height="303" viewBox="0 0 305 303" fill="black">
<g data-cell-id="0">
<g data-cell-id="1">
<g data-cell-id="VWNVXCt4D-a2G1M2WzpA-1" stroke-width="25" stroke-miterlimit="10">
<path d="M88.7 212.4 255.68 45.42" stroke="#000" pointer-events="stroke"/>
<path d="m268.44 31.66-8.84 26.52-4.42-13.26-13.26-4.42Z" stroke="#000" pointer-events="all" transform="translate(.5 .5)"/>
</g>
<path d="m28.703 214.829 21.213-21.213 49.497 7.07 7.071 49.498-21.213 21.213L78.2 221.9Z" pointer-events="all"/>
<path d="m-1.297 244.829 21.213-21.213 49.497 7.07 7.071 49.498-21.213 21.213L48.2 251.9Z" pointer-events="all"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

View File

@ -6,7 +6,7 @@
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,278.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
fill="#1f5394" stroke="none">
<path d="M1685 2643 c-131 -111 -253 -191 -400 -263 -115 -56 -307 -120 -405
-134 -25 -4 -57 -9 -72 -12 l-28 -6 0 -176 c0 -252 -2 -244 79 -278 36 -15 70
-31 76 -36 5 -4 16 -8 24 -8 12 0 13 25 8 165 -3 102 -2 167 4 171 5 3 51 17

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -18,6 +18,32 @@
report-theme.at("chart-2"),
)
#let shape-short = (
"Griffes": "Grif.", "Hast": "Hast", "Épée": "Épée",
"Marteau": "Mart.", "Hache": "Hache", "Arbalète": "Arba.", "Arc": "Arc",
)
#let nature-short = (Light: "L", Medium: "M", Heavy: "Ld", SuperHeavy: "SL")
#let weapon-row-labels = all-weapon-metrics.map(item => [
#shape-short.at(item.shape) · #nature-short.at(item.nature-key)
])
#let swing-columns = comparison-dice-pools.fold((), (labels, dice) => (
labels + ([−1 · #dice d], [+1 · #dice d])
))
#let sensitivity-heatmap(title, values) = block(
breakable: false,
)[
#heading(level: 5)[#title]
#align(center, heatmap(
(rows: weapon-row-labels, cols: swing-columns, values: values),
cell-size: 20pt,
show-values: true,
show-legend: true,
palette: correlation-palette,
theme: chart-theme,
))
]
#let weapon-breakpoint-report() = {
pagebreak()
heading(level: 3)[Sensibilité, corrélations et points de rupture]
@ -26,6 +52,95 @@
Chaque observation conserve les modificateurs propres à l’arme, `R.Max` et le
meilleur partage possible sur 2A.]
heading(level: 4)[Impact d’un point d’équilibrage]
[Ces cartes répondent directement à « que coûte ou rapporte un point ? ». Les
valeurs sont les variations relatives des dégâts attendus par rapport à
l’arme actuelle. Chaque variante recalcule aussi le meilleur partage du pool;
un saut peut donc révéler un changement de stratégie, pas seulement un effet
arithmétique local.]
let sensitivity-rows = point-sensitivity-summary.map(row => (
str(row.dice),
rounded(row.precision-loss, digits: 1) + [%],
rounded(row.precision-gain, digits: 1) + [%],
rounded(row.p-damage-loss, digits: 1) + [%],
rounded(row.p-damage-gain, digits: 1) + [%],
))
tables.set-table-style(
table(
columns: (0.65fr,) + (1fr,) * 4,
align: (right,) * 5,
table.header(
[Pool], [Préc. −1], [Préc. +1], [Dég./réuss. −1], [Dég./réuss. +1],
),
..sensitivity-rows.flatten(),
),
table-theme: "steingrund",
text-size: 7.5pt,
)
let paired-impact(row, loss-key, gain-key) = (
(calc.abs(row.at(loss-key)) + calc.abs(row.at(gain-key))) / 2
)
let precision-impacts = point-sensitivity-summary.map(row => (
paired-impact(row, "precision-loss", "precision-gain")
))
let p-damage-impacts = point-sensitivity-summary.map(row => (
paired-impact(row, "p-damage-loss", "p-damage-gain")
))
let trend-word(values) = if values.last() < values.first() {
"diminue"
} else if values.last() > values.first() {
"augmente"
} else {
"reste stable"
}
let relative-evolution(values) = if values.first() == 0 { 0 } else {
(values.last() / values.first() - 1) * 100
}
[*Conclusion calculée.* L’impact moyen absolu d’un point de précision
#trend-word(precision-impacts), de
#rounded(precision-impacts.first(), digits: 1)% à 5 dés à
#rounded(precision-impacts.last(), digits: 1)% à 14 dés
(#rounded(relative-evolution(precision-impacts), digits: 1)%). Celui d’un point
de dégâts par réussite #trend-word(p-damage-impacts), de
#rounded(p-damage-impacts.first(), digits: 1)% à
#rounded(p-damage-impacts.last(), digits: 1)%
(#rounded(relative-evolution(p-damage-impacts), digits: 1)%). Cette phrase,
ses valeurs et ses verbes sont reconstruits à chaque compilation.]
sensitivity-heatmap(
[Précision ±1 — variation des dégâts (%)],
precision-swing-grid,
)
sensitivity-heatmap(
[Dégâts par réussite ±1 — variation des dégâts (%)],
p-damage-swing-grid,
)
pagebreak()
heading(level: 4)[Seuil × arme à engagement fixe]
[Ces cartes conservent chaque arme individuellement et font varier le seuil de
base. Elles permettent de voir si une arme reste stable entre les régimes de
faible engagement, d’engagement médian et de saturation.]
for dice in comparison-dice-pools {
block(breakable: false)[
#heading(level: 5)[Espérance à #dice dés]
#align(center, heatmap(
(
rows: weapon-row-labels,
cols: analyzed-base-precisions.map(value => [Seuil #value]),
values: weapon-threshold-grid(dice),
),
cell-size: 17pt,
show-values: true,
palette: sensitivity-palette,
theme: chart-theme,
))
]
}
heading(level: 4)[Surface de dégâts attendus]
[Les cellules agrègent la moyenne de toutes les armes. Le seuil indiqué est
la valeur naturelle avant application du modificateur de précision de l’arme.]

View File

@ -4,6 +4,7 @@
#let analyzed-base-precisions = range(2, 9)
#let analyzed-dice-pools = range(3, 15)
#let comparison-dice-pools = (5, 8, 14)
#let mean(values) = values.sum() / values.len()
@ -30,6 +31,71 @@
analyzed-probability(base-precision, item.precision),
).best
#let perturbed-damage(
item,
dice,
precision-delta: 0,
p-damage-delta: 0,
base-precision: natural-precision,
) = commitment-analysis(
item.base-damage,
item.p-damage + p-damage-delta,
item.rmax,
item.actions,
dice,
analyzed-probability(base-precision, item.precision + precision-delta),
).best
#let relative-change(item, dice, precision-delta: 0, p-damage-delta: 0) = {
let baseline = perturbed-damage(item, dice)
let changed = perturbed-damage(
item,
dice,
precision-delta: precision-delta,
p-damage-delta: p-damage-delta,
)
if baseline == 0 { 0 } else { (changed / baseline - 1) * 100 }
}
#let weapon-threshold-grid(dice) = all-weapon-metrics.map(item => (
analyzed-base-precisions.map(precision => swept-damage(item, precision, dice))
))
#let weapon-sensitivity-grid(precision-delta: 0, p-damage-delta: 0) = (
all-weapon-metrics.map(item => comparison-dice-pools.map(dice => relative-change(
item,
dice,
precision-delta: precision-delta,
p-damage-delta: p-damage-delta,
)))
)
#let precision-loss-grid = weapon-sensitivity-grid(precision-delta: -1)
#let precision-gain-grid = weapon-sensitivity-grid(precision-delta: 1)
#let p-damage-loss-grid = weapon-sensitivity-grid(p-damage-delta: -1)
#let p-damage-gain-grid = weapon-sensitivity-grid(p-damage-delta: 1)
#let precision-swing-grid = precision-loss-grid.zip(precision-gain-grid).map(pair => (
range(0, comparison-dice-pools.len()).fold((), (values, index) => (
values + (pair.at(0).at(index), pair.at(1).at(index))
))
))
#let p-damage-swing-grid = p-damage-loss-grid.zip(p-damage-gain-grid).map(pair => (
range(0, comparison-dice-pools.len()).fold((), (values, index) => (
values + (pair.at(0).at(index), pair.at(1).at(index))
))
))
#let point-sensitivity-summary = comparison-dice-pools.enumerate().map(pair => {
let index = pair.at(0)
let dice = pair.at(1)
(
dice: dice,
precision-loss: mean(precision-loss-grid.map(row => row.at(index))),
precision-gain: mean(precision-gain-grid.map(row => row.at(index))),
p-damage-loss: mean(p-damage-loss-grid.map(row => row.at(index))),
p-damage-gain: mean(p-damage-gain-grid.map(row => row.at(index))),
)
})
#let weapon-sensitivity-cube = analyzed-base-precisions.fold((), (rows, precision) => (
rows + analyzed-dice-pools.fold((), (pool-rows, dice) => (
pool-rows + all-weapon-metrics.map(item => (

View File

@ -20,7 +20,7 @@
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/blood.png"),
image("/images/icons/blood.svg"),
)
#let jauge-box = box(
height: 0.65em,
@ -80,13 +80,13 @@
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/protection.png"),
image("/images/icons/protection.svg"),
)
#let integrity-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/integrity.png"),
image("/images/icons/integrity.svg"),
)
#let cost-box = box(
height: 0.65em,