diff --git a/images/icons/antimaterial.svg b/images/icons/antimaterial.svg
new file mode 100644
index 0000000..3a3d917
--- /dev/null
+++ b/images/icons/antimaterial.svg
@@ -0,0 +1,78 @@
+
+
+
diff --git a/images/icons/arbreakk_color.svg b/images/icons/arbreakk_color.svg
new file mode 100644
index 0000000..7cec3cb
--- /dev/null
+++ b/images/icons/arbreakk_color.svg
@@ -0,0 +1,60 @@
+
+
+
diff --git a/images/icons/armor_pierce.svg b/images/icons/armor_pierce.svg
new file mode 100644
index 0000000..2db5aed
--- /dev/null
+++ b/images/icons/armor_pierce.svg
@@ -0,0 +1,44 @@
+
+
+
diff --git a/images/icons/blunt.png b/images/icons/blunt.png
deleted file mode 100644
index 31df0d1..0000000
Binary files a/images/icons/blunt.png and /dev/null differ
diff --git a/images/icons/broken_shield_white.png b/images/icons/broken_shield_white.png
deleted file mode 100644
index 2fe6935..0000000
Binary files a/images/icons/broken_shield_white.png and /dev/null differ
diff --git a/images/icons/bulgeon.png b/images/icons/bulgeon.png
deleted file mode 100644
index 31df0d1..0000000
Binary files a/images/icons/bulgeon.png and /dev/null differ
diff --git a/images/icons/emptystar.png b/images/icons/emptystar.png
deleted file mode 100644
index 5c0e487..0000000
Binary files a/images/icons/emptystar.png and /dev/null differ
diff --git a/images/icons/gauge.png b/images/icons/gauge.png
deleted file mode 100644
index 83773a3..0000000
Binary files a/images/icons/gauge.png and /dev/null differ
diff --git a/images/icons/slash2.png b/images/icons/slash2.png
deleted file mode 100644
index aed2f2a..0000000
Binary files a/images/icons/slash2.png and /dev/null differ
diff --git a/images/icons/star.png b/images/icons/star.png
deleted file mode 100644
index a8d2c75..0000000
Binary files a/images/icons/star.png and /dev/null differ
diff --git a/images/icons/stealth.webp b/images/icons/stealth.webp
deleted file mode 100644
index dce0634..0000000
Binary files a/images/icons/stealth.webp and /dev/null differ
diff --git a/images/icons/swordw.png b/images/icons/swordw.png
deleted file mode 100644
index fec3bf8..0000000
Binary files a/images/icons/swordw.png and /dev/null differ
diff --git a/images/icons/torque.png b/images/icons/torque.png
deleted file mode 100644
index 8ee3d96..0000000
Binary files a/images/icons/torque.png and /dev/null differ
diff --git a/images/icons/torque_color.svg b/images/icons/torque_color.svg
new file mode 100644
index 0000000..636f9b9
--- /dev/null
+++ b/images/icons/torque_color.svg
@@ -0,0 +1,40 @@
+
+
+
diff --git a/images/icons/transcendental.svg b/images/icons/transcendental.svg
new file mode 100644
index 0000000..cf0479f
--- /dev/null
+++ b/images/icons/transcendental.svg
@@ -0,0 +1,33 @@
+
+
+
diff --git a/images/yonsen_glyphs/hunter_v3.svg b/images/yonsen_glyphs/hunter_v3.svg
new file mode 100644
index 0000000..4fc67d8
--- /dev/null
+++ b/images/yonsen_glyphs/hunter_v3.svg
@@ -0,0 +1,37 @@
+
+
+
diff --git a/images/yonsen_glyphs/saint.svg b/images/yonsen_glyphs/saint.svg
new file mode 100644
index 0000000..8fc3ed2
--- /dev/null
+++ b/images/yonsen_glyphs/saint.svg
@@ -0,0 +1,37 @@
+
+
+
diff --git a/setup/analysis/_info.md b/setup/analysis/_info.md
index 6bfc053..328f923 100644
--- a/setup/analysis/_info.md
+++ b/setup/analysis/_info.md
@@ -3,6 +3,8 @@ presentation. Keep TSV parsing out of report entry points so future balance
sections can reuse the same normalized datasets.
- `class_costs.typ` and `class_cost_report.typ` analyze school costs.
+- `class_alterations.typ` and `class_alteration_report.typ` analyze alteration
+ coverage and constraints in enabled school tiers.
- `origin_metrics.typ` and `origin_report.typ` analyze origin characteristics,
abilities, and heuristically detected resistance grants.
- `craft_metrics.typ` and `craft_report.typ` analyze elemental damage,
diff --git a/setup/analysis/class_alteration_report.typ b/setup/analysis/class_alteration_report.typ
new file mode 100644
index 0000000..d578007
--- /dev/null
+++ b/setup/analysis/class_alteration_report.typ
@@ -0,0 +1,113 @@
+// Presentation layer for school alteration analysis.
+#import "@preview/primaviz:0.6.0": bar-chart, horizontal-bar-chart
+#import "class_alterations.typ": *
+#import "class_costs.typ": class-display-names
+#import "report_style.typ": chart-theme, metric-card, rounded
+#import "../generation/radar_graphs.typ": school-sources
+#import "../theme/tables.typ" as tables
+#import "../build_config.typ": school-tiers
+
+#let school-alteration-report() = {
+ pagebreak()
+ heading(level: 2)[Classes — altérations]
+
+ let technique-keys = (:)
+ for item in all-school-alterations {
+ technique-keys.insert(item.class + "/" + str(item.tier) + "/" + item.technique, true)
+ }
+ let represented-classes = school-sources.keys().filter(name => school-alterations(class: name).len() > 0)
+
+ grid(
+ columns: (1fr,) * 4,
+ column-gutter: 8pt,
+ metric-card("Mentions", all-school-alterations.len()),
+ metric-card("Altérations distinctes", school-alteration-counts.len()),
+ metric-card("Techniques concernées", technique-keys.len()),
+ metric-card("Classes concernées", represented-classes.len()),
+ )
+
+ [Une mention correspond à une macro `@al_*` dans l’effet d’une technique.
+ Les répétitions au sein d’un même effet restent comptées : elles indiquent
+ qu’une technique dépend plusieurs fois de la même altération.]
+
+ heading(level: 3)[Altérations représentées]
+ horizontal-bar-chart(
+ (
+ labels: school-alteration-counts.map(item => item.label.replace("_", " ")),
+ values: school-alteration-counts.map(item => item.count),
+ ),
+ width: 100%, height: 175pt, show-values: true, theme: chart-theme,
+ )
+
+ heading(level: 3)[Mentions par classe et par tier]
+ grid(
+ columns: (1fr, 1fr),
+ column-gutter: 12pt,
+ horizontal-bar-chart(
+ (
+ labels: school-sources.keys().map(name => class-display-names.at(name)),
+ values: school-sources.keys().map(name => school-alterations(class: name).len()),
+ ),
+ width: 100%, height: 190pt, title: [Par classe], show-values: true, theme: chart-theme,
+ ),
+ bar-chart(
+ (
+ labels: school-tiers.map(tier => "T" + str(tier)),
+ values: school-tiers.map(tier => school-alterations(tier: tier).len()),
+ ),
+ width: 100%, height: 190pt, title: [Par tier], show-values: true, theme: chart-theme,
+ ),
+ )
+
+ heading(level: 3)[Contraintes moyennes par altération]
+ let rows = school-alteration-profiles.map(profile => (
+ profile.subtype.replace("_", " "), str(profile.count),
+ "T" + str(profile.first-tier), "T" + str(profile.peak-tier),
+ rounded(profile.level, digits: 1), rounded(profile.blood, digits: 1),
+ rounded(profile.gauge, digits: 1), rounded(profile.difficulty, digits: 1),
+ ))
+ tables.set-table-style(
+ table(
+ columns: (1.45fr, 0.42fr, 0.55fr, 0.55fr, 0.62fr, 0.62fr, 0.62fr, 0.62fr),
+ align: (left,) + (right,) * 7,
+ table.header([Altération], [N], [Début], [Pic], [Niv.], [Sang], [Jauge], [Diff.]),
+ ..rows.flatten(),
+ ),
+ table-theme: "steingrund",
+ text-size: 7.4pt,
+ )
+
+ heading(level: 3)[Matrice classe × altération]
+ let matrix = ()
+ for name in school-sources.keys() {
+ matrix.push(class-display-names.at(name))
+ for alteration in school-alteration-counts {
+ matrix.push(str(school-alterations(class: name, subtype: alteration.label).len()))
+ }
+ }
+ tables.set-table-style(
+ table(
+ columns: (1.45fr,) + (0.85fr,) * school-alteration-counts.len(),
+ align: (left,) + (right,) * school-alteration-counts.len(),
+ table.header([Classe], ..school-alteration-counts.map(item => [#item.label.replace("_", " ")])),
+ ..matrix,
+ ),
+ table-theme: "steingrund",
+ text-size: 7pt,
+ )
+
+ heading(level: 3)[Audit des mentions]
+ let audit = all-school-alterations.map(item => (
+ item.display, "T" + str(item.tier), item.technique,
+ item.subtype.replace("_", " "), rounded(item.difficulty, digits: 1),
+ ))
+ tables.set-table-style(
+ table(
+ columns: (1.2fr, 0.4fr, 2fr, 1.1fr, 0.5fr),
+ table.header([Classe], [Tier], [Technique], [Altération], [Diff.]),
+ ..audit.flatten(),
+ ),
+ table-theme: "steingrund",
+ text-size: 7pt,
+ )
+}
diff --git a/setup/analysis/class_alterations.typ b/setup/analysis/class_alterations.typ
new file mode 100644
index 0000000..c467466
--- /dev/null
+++ b/setup/analysis/class_alterations.typ
@@ -0,0 +1,104 @@
+// Heuristic alteration metrics extracted from enabled school tiers.
+#import "../generation/radar_graphs.typ": school-sources
+#import "../build_config.typ": school-tiers, tier-is-enabled
+#import "class_costs.typ": class-display-names
+
+#let school-number(value) = {
+ let cleaned = value.trim()
+ if cleaned.match(regex("^-?(?:\d+(?:\.\d+)?|\.\d+)$")) != none {
+ float(cleaned)
+ } else { none }
+}
+
+#let analyze-school-alterations(name, source) = {
+ let rows = csv(source, delimiter: "\t")
+ let records = ()
+ let current-tier = none
+ let columns = none
+
+ for row in rows {
+ if row.len() == 0 { continue }
+ let first = row.first().trim()
+ if first.starts-with("Tier") {
+ let digits = first.match(regex("\d+"))
+ if digits != none { current-tier = int(digits.text) }
+ continue
+ }
+ if first == "Technique" {
+ columns = (
+ level: row.position(cell => cell.trim() == "Niv"),
+ blood: row.position(cell => cell.trim() == "Sang"),
+ gauge: row.position(cell => cell.trim() == "Jauge"),
+ effect: row.position(cell => cell.trim() == "Effet"),
+ )
+ continue
+ }
+ if columns == none or current-tier == none or not tier-is-enabled(current-tier) { continue }
+ if columns.effect >= row.len() { continue }
+ let effect = row.at(columns.effect)
+ for alteration in effect.matches(regex("@al_([a-z_]+)")) {
+ let following = effect.slice(alteration.end)
+ let difficulty = following.match(regex("^.{0,24}?#ddlvl\\((-?\\d+)"))
+ records.push((
+ class: name,
+ display: class-display-names.at(name),
+ source: source,
+ tier: current-tier,
+ technique: first,
+ level: if columns.level < row.len() { school-number(row.at(columns.level)) } else { none },
+ blood: if columns.blood < row.len() { school-number(row.at(columns.blood)) } else { none },
+ gauge: if columns.gauge < row.len() { school-number(row.at(columns.gauge)) } else { none },
+ subtype: alteration.captures.first(),
+ difficulty: if difficulty == none { none } else { int(difficulty.captures.first()) },
+ raw: effect,
+ ))
+ }
+ }
+ records
+}
+
+#let all-school-alterations = school-sources.pairs().map(pair => (
+ analyze-school-alterations(pair.first(), pair.last())
+)).flatten()
+
+#let school-alterations(class: none, subtype: none, tier: none) = all-school-alterations.filter(item => (
+ (class == none or item.class == class) and
+ (subtype == none or item.subtype == subtype) and
+ (tier == none or item.tier == tier)
+))
+
+#let school-alteration-counts = {
+ let counts = (:)
+ for item in all-school-alterations {
+ counts.insert(item.subtype, counts.at(item.subtype, default: 0) + 1)
+ }
+ counts.pairs().map(pair => (label: pair.first(), count: pair.last())).sorted(key: item => -item.count)
+}
+
+#let school-alteration-average(records, key) = {
+ let values = records.map(item => item.at(key)).filter(value => value != none)
+ if values.len() == 0 { none } else { calc.round(values.sum() / values.len(), digits: 1) }
+}
+
+#let school-alteration-profile(subtype) = {
+ let records = school-alterations(subtype: subtype)
+ let tiers = school-tiers.map(tier => (
+ tier: tier, count: school-alterations(subtype: subtype, tier: tier).len(),
+ ))
+ let present = tiers.filter(item => item.count > 0)
+ let peak = present.sorted(key: item => -item.count).first()
+ (
+ subtype: subtype,
+ count: records.len(),
+ first-tier: present.first().tier,
+ peak-tier: peak.tier,
+ level: school-alteration-average(records, "level"),
+ blood: school-alteration-average(records, "blood"),
+ gauge: school-alteration-average(records, "gauge"),
+ difficulty: school-alteration-average(records, "difficulty"),
+ )
+}
+
+#let school-alteration-profiles = school-alteration-counts.map(item => (
+ school-alteration-profile(item.label)
+))
diff --git a/setup/analysis/class_cost_report.typ b/setup/analysis/class_cost_report.typ
index 4aec8fd..b618a9c 100644
--- a/setup/analysis/class_cost_report.typ
+++ b/setup/analysis/class_cost_report.typ
@@ -4,6 +4,7 @@
#import "report_style.typ": chart-theme, metric-card, report-theme, rounded
#import "../theme/tables.typ" as tables
#import "../build_config.typ": school-tiers
+#import "class_alteration_report.typ": school-alteration-report
#let class-chart-labels = (
artilleur: "Art.",
@@ -252,6 +253,7 @@
heading(level: 1)[Classes]
portfolio-overview(classes: classes)
cross-class-tier-report(classes: classes)
+ school-alteration-report()
for (_, class-data) in classes {
class-cost-section(class-data)
}
diff --git a/setup/analysis/craft_report.typ b/setup/analysis/craft_report.typ
index b864818..716c32b 100644
--- a/setup/analysis/craft_report.typ
+++ b/setup/analysis/craft_report.typ
@@ -73,7 +73,7 @@
heading(level: 2)[Artisanat — effets et contraintes]
[Les familles ci-dessous sont détectées dans les textes d’effet. Les moyennes
- de coût, niveau, toxicité et `_end` utilisent uniquement les lignes où le champ
+ de coût, niveau, toxicité et Finitions utilisent uniquement les lignes où le champ
correspondant est présent. Le breakpoint est le tier dont l’augmentation par
rapport au tier précédent est la plus forte.]
@@ -99,7 +99,7 @@
table(
columns: (1.25fr, 0.38fr, 0.42fr, 0.72fr, 0.78fr, 0.48fr, 0.48fr, 0.48fr, 0.48fr),
align: (left,) + (right,) * 8,
- table.header([Famille], [N], [Début], [Pic], [Rupture], [Coût], [Niv.], [Tox.], [`_end`]),
+ table.header([Famille], [N], [Début], [Pic], [Rupture], [Coût], [Niv.], [Tox.], [Finitions]),
..rows.flatten(),
),
table-theme: "steingrund",
@@ -118,7 +118,7 @@
insight-card("Coût max. moyen", constrained.at(0).leader.category + " · " + str(constrained.at(0).leader.cost), [maximum calculé entre familles]),
insight-card("Niveau max. moyen", constrained.at(1).leader.category + " · " + str(constrained.at(1).leader.level), [maximum calculé entre familles]),
insight-card("Toxicité max. moyenne", constrained.at(2).leader.category + " · " + str(constrained.at(2).leader.toxicity), [maximum calculé entre familles]),
- insight-card("`_end` max. moyen", constrained.at(3).leader.category + " · " + str(constrained.at(3).leader.endurance), [maximum calculé entre familles]),
+ insight-card("Finitions moy. max.", constrained.at(3).leader.category + " · " + str(constrained.at(3).leader.endurance), [maximum calculé entre familles]),
)
pagebreak(weak: true)
@@ -158,7 +158,7 @@
table(
columns: (1.3fr, 1fr, 1fr, 1fr, 1fr),
align: (left, right, right, right, right),
- table.header([Famille], [Coût min–max], [Niv. min–max], [Tox. min–max], [`_end` min–max]),
+ table.header([Famille], [Coût min–max], [Niv. min–max], [Tox. min–max], [Finitions min–max]),
..range-rows.flatten(),
),
table-theme: "steingrund",
@@ -179,7 +179,7 @@
table(
columns: (0.6fr, 0.6fr, 1fr, 1fr, 1fr, 1fr),
align: (left, right, right, right, right, right),
- table.header([Tier], [N], [Coût moy.], [Niv. moy.], [Tox. moy.], [`_end` moy.]),
+ table.header([Tier], [N], [Coût moy.], [Niv. moy.], [Tox. moy.], [Finitions moy.]),
..tier-rows.flatten(),
),
table-theme: "steingrund",
diff --git a/setup/analysis/origin_metrics.typ b/setup/analysis/origin_metrics.typ
index 0fb8343..0c7542b 100644
--- a/setup/analysis/origin_metrics.typ
+++ b/setup/analysis/origin_metrics.typ
@@ -210,6 +210,13 @@
}
}
+ let initiative-by-stage = range(1, 4).map(stage => {
+ let grants = passive-bonuses.filter(grant => (
+ grant.category == "Initiative" and grant.stage == stage
+ ))
+ if grants.len() == 0 { 0 } else { grants.map(grant => grant.value).sum() }
+ })
+
(
family: source-data.family,
name: data.name,
@@ -221,6 +228,8 @@
by-stage: by-stage,
resistances: resistances,
passive-bonuses: passive-bonuses,
+ initiative-by-stage: initiative-by-stage,
+ initiative-total: initiative-by-stage.sum(),
)
}
diff --git a/setup/analysis/origin_report.typ b/setup/analysis/origin_report.typ
index a2e2923..ba8fb9d 100644
--- a/setup/analysis/origin_report.typ
+++ b/setup/analysis/origin_report.typ
@@ -107,19 +107,45 @@
origin.name,
origin.stats-seven.join(" + "),
origin.stats-five.join(" + "),
+ str(origin.initiative-total),
str(origin.active),
str(origin.passive),
))
}
tables.set-table-style(
table(
- columns: (0.8fr, 1.65fr, 0.65fr, 0.55fr, 0.5fr, 0.5fr),
- table.header([Origine], [Profil], [À 7], [À 5], [Actifs], [Passifs]),
+ columns: (0.8fr, 1.65fr, 0.65fr, 0.55fr, 0.5fr, 0.5fr, 0.5fr),
+ table.header(
+ [Origine], [Profil], [À 7], [À 5], [Init.], [Actifs], [Passifs],
+ ),
..rows.flatten(),
),
table-theme: "steingrund",
text-size: 7.5pt,
)
+
+ heading(level: 3)[Initiative par stade]
+
+ let initiative-rows = origins.map(origin => (
+ origin.family,
+ origin.name,
+ ..origin.initiative-by-stage.map(str),
+ strong(str(origin.initiative-total)),
+ ))
+ tables.set-table-style(
+ table(
+ columns: (0.9fr, 1.8fr, 0.55fr, 0.55fr, 0.55fr, 0.65fr),
+ align: (left, left, right, right, right, right),
+ table.header([Origine], [Profil], [Stade 1], [Stade 2], [Stade 3], [Total]),
+ ..initiative-rows.flatten(),
+ ),
+ table-theme: "steingrund",
+ text-size: 7.5pt,
+ )
+
+ text(size: 7.5pt, fill: report-theme.muted-ink)[
+ Le total additionne les bonus passifs explicites des trois stades.
+ ]
}
#let ability-audit(origins: all-origin-metrics) = {