diff --git a/chapters/artisanat.typ b/chapters/artisanat.typ index 4553535..8c42457 100644 --- a/chapters/artisanat.typ +++ b/chapters/artisanat.typ @@ -1,6 +1,6 @@ #import "/setup/setup.typ": ddlvl, hunbal, macros -#import "/setup/boxes.typ": * -#import "/setup/set_tables.typ" as st +#import "/setup/theme/boxes.typ": * +#import "/setup/theme/tables.typ" as st #let ref(reference) = [Voir @#reference @#reference:name] diff --git a/chapters/craft/armurerie.typ b/chapters/craft/armurerie.typ index e9dec45..e1b63e6 100644 --- a/chapters/craft/armurerie.typ +++ b/chapters/craft/armurerie.typ @@ -1,6 +1,6 @@ #import "/setup/setup.typ": csv-table, ddlvl -#import "/setup/boxes.typ": * -#import "/setup/macros.typ": bigscope, sA, sS, sW +#import "/setup/theme/boxes.typ": * +#import "/setup/core/macros.typ": bigscope, sA, sS, sW #let scope = bigscope #scope.insert("sW", sW) diff --git a/chapters/craft/traps.typ b/chapters/craft/traps.typ index 03186bb..ae3652b 100644 --- a/chapters/craft/traps.typ +++ b/chapters/craft/traps.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": csv-table, ddlvl, macros, st -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * Les pièges correspondent au besoin primordial des chasseurs de s'accaparer une partie de la dynamique du combat, même si seulement pour un court instant. La préparation de ces derniers bien que difficile et parfois modérément efficace, reste primordiale dans l'arsenal du chasseur. @@ -90,4 +90,3 @@ Une personne ou créature souhaitant désamorcer un piège doit effectuer un jet Une autre méthode de désamorçage plus brutale consiste a tenter de l'activer ou le détruire à l'aide d'éléments de décor ou autres projectiles. La réussite de cette entreprise dépendra de la taille dudit élément de décor est sera en général déterminé par un jet de torque. Tout piège utilisé ou détruit ne rendra qu'une partie des matériaux utilisés aux chasseurs. - diff --git a/chapters/creation.typ b/chapters/creation.typ index f1c6c6f..adb9109 100644 --- a/chapters/creation.typ +++ b/chapters/creation.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * = Création == Création de personnage diff --git a/chapters/experience_gains.typ b/chapters/experience_gains.typ index 35f3b8f..755672b 100644 --- a/chapters/experience_gains.typ +++ b/chapters/experience_gains.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * = Gains d'expérience et Progression == Absorption du sang et gain d'expérience diff --git a/chapters/game_master_help.typ b/chapters/game_master_help.typ index f96086c..f8dbce4 100644 --- a/chapters/game_master_help.typ +++ b/chapters/game_master_help.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * = Aide au MJ == De la nature des discutions lors d'une partie diff --git a/chapters/origines.typ b/chapters/origines.typ index 47398ea..489f5e0 100644 --- a/chapters/origines.typ +++ b/chapters/origines.typ @@ -1,4 +1,4 @@ -#import "/setup/origin_models.typ": creature-title, render-creature +#import "/setup/models/origin.typ": creature-title, render-creature #import "/setup/setup.typ": theme //----- DOCUMENT ----- diff --git a/chapters/rules/regles_alteration.typ b/chapters/rules/regles_alteration.typ index 259d522..a58582e 100644 --- a/chapters/rules/regles_alteration.typ +++ b/chapters/rules/regles_alteration.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, kw, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Altération d'état diff --git a/chapters/rules/regles_base.typ b/chapters/rules/regles_base.typ index 9dcf685..1a2ae9e 100644 --- a/chapters/rules/regles_base.typ +++ b/chapters/rules/regles_base.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Règles de base diff --git a/chapters/rules/regles_combat.typ b/chapters/rules/regles_combat.typ index 549fb4e..b32edb0 100644 --- a/chapters/rules/regles_combat.typ +++ b/chapters/rules/regles_combat.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, kw, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Règles en combat @@ -563,4 +563,3 @@ Ces notions restent extrêmement subjectives et ne sont jamais une certitude, c' ] Dit autrement la créature peut surprendre les joueurs et le @maitredejeu se devra de tromper les chasseurs en leur attribuant leurs effets, sachant pertinemment que la créature est capable d'attaque ses cibles a tout moment#footnote[Il peut s'agir d'une forme de malice de la créature ou simplement d'une capacité inconnue ou non documentée jusque-là.]. - diff --git a/chapters/rules/regles_competences.typ b/chapters/rules/regles_competences.typ index 47c0ef6..b8a13c2 100644 --- a/chapters/rules/regles_competences.typ +++ b/chapters/rules/regles_competences.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Compétences, équipements, réalisme, rapidité diff --git a/chapters/rules/regles_damagetype.typ b/chapters/rules/regles_damagetype.typ index b594907..33e0fec 100644 --- a/chapters/rules/regles_damagetype.typ +++ b/chapters/rules/regles_damagetype.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, kw, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Types de dégâts diff --git a/chapters/rules/regles_fatigue.typ b/chapters/rules/regles_fatigue.typ index b6a723b..50a0a53 100644 --- a/chapters/rules/regles_fatigue.typ +++ b/chapters/rules/regles_fatigue.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Fatigue diff --git a/chapters/rules/regles_predation.typ b/chapters/rules/regles_predation.typ index 6aff7c2..d0d2b1b 100644 --- a/chapters/rules/regles_predation.typ +++ b/chapters/rules/regles_predation.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * #import "@preview/fletcher:0.5.8" as fletcher: diagram, edge, node #let bubble-size = 10mm diff --git a/chapters/rules/regles_projectiles.typ b/chapters/rules/regles_projectiles.typ index 71b416c..9c71153 100644 --- a/chapters/rules/regles_projectiles.typ +++ b/chapters/rules/regles_projectiles.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Dégâts de projectiles improvisés diff --git a/chapters/rules/regles_rodeo.typ b/chapters/rules/regles_rodeo.typ index 7100c4e..8c7589a 100644 --- a/chapters/rules/regles_rodeo.typ +++ b/chapters/rules/regles_rodeo.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, kw, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Saisies, rodéos et chevauchée diff --git a/chapters/rules/regles_soins.typ b/chapters/rules/regles_soins.typ index 19beefb..eed7347 100644 --- a/chapters/rules/regles_soins.typ +++ b/chapters/rules/regles_soins.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Soins et médecine Le concept de soins pour les enfants des calamités est un peu particulier, capables de digérer sans broncher des substances qui plieraient de douleur un homme ordinaire, capables de régénérer des membres entiers en quelques semaines de convalescence, le point central de la médecine pour les enfants des calamités devient donc une alimentation abondante, et beaucoup de repos. diff --git a/chapters/rules/regles_transcendance.typ b/chapters/rules/regles_transcendance.typ index 44d304d..a90ebe5 100644 --- a/chapters/rules/regles_transcendance.typ +++ b/chapters/rules/regles_transcendance.typ @@ -1,5 +1,5 @@ #import "/setup/setup.typ": ddlvl, macros -#import "/setup/boxes.typ": * +#import "/setup/theme/boxes.typ": * == Transcendance diff --git a/setup/_info.md b/setup/_info.md index 9b34a24..fcc7e72 100644 --- a/setup/_info.md +++ b/setup/_info.md @@ -1 +1,11 @@ -Here goes all the Typst modules and content files needed elsewhere in the project. +This directory contains the Typst modules shared by the rulebook. + +- `setup.typ` is the stable public facade used by most chapters. +- `core/` contains project-wide macros and rule constants. +- `generation/` turns external data into Typst content. +- `models/` contains document and domain-specific presentation models. +- `theme/` contains colors, symbols, tables, boxes, and decorations. + +Prefer importing from `setup.typ`. Import an implementation module directly only +for specialized renderers or helpers that are intentionally not part of the +global facade. diff --git a/setup/limits.typ b/setup/core/limits.typ similarity index 100% rename from setup/limits.typ rename to setup/core/limits.typ diff --git a/setup/macros.typ b/setup/core/macros.typ similarity index 96% rename from setup/macros.typ rename to setup/core/macros.typ index 869829d..aa20830 100644 --- a/setup/macros.typ +++ b/setup/core/macros.typ @@ -1,6 +1,6 @@ //----- Project theme ----- -#import "variables.typ": theme, theme-var -#import "symbols.typ" as symbols +#import "../theme/variables.typ": theme, theme-var +#import "../theme/symbols.typ" as symbols #import "limits.typ": hunbal #import "@preview/glossarium:0.5.10": gls diff --git a/setup/csv_table.typ b/setup/generation/csv-table.typ similarity index 96% rename from setup/csv_table.typ rename to setup/generation/csv-table.typ index 0828c01..6e124cc 100644 --- a/setup/csv_table.typ +++ b/setup/generation/csv-table.typ @@ -9,8 +9,8 @@ // It can also be an array with one mode per cell, in row-major order: // // (false, false, "markup", "code", false, ..) -#import "macros.typ" as macros -#import "set_tables.typ" as set_tables +#import "../core/macros.typ" as macros +#import "../theme/tables.typ" as set_tables #let csv-table( source, @@ -109,4 +109,3 @@ [#table] } } - diff --git a/setup/glossary.typ b/setup/generation/glossary.typ similarity index 98% rename from setup/glossary.typ rename to setup/generation/glossary.typ index 48e261b..c15fb0d 100644 --- a/setup/glossary.typ +++ b/setup/generation/glossary.typ @@ -1,5 +1,5 @@ -#import "macros.typ" as macros -#import "limits.typ": hunbal +#import "../core/macros.typ" as macros +#import "../core/limits.typ": hunbal // Glossary loading helpers. // diff --git a/setup/generation/radar_graphs.typ b/setup/generation/radar_graphs.typ new file mode 100644 index 0000000..e69de29 diff --git a/setup/model.typ b/setup/models/document.typ similarity index 99% rename from setup/model.typ rename to setup/models/document.typ index 59e1c2d..b43eaae 100644 --- a/setup/model.typ +++ b/setup/models/document.typ @@ -5,8 +5,8 @@ ) // Load project glossaries and presentation model -#import "glossary.typ": glossary -#import "school_model.typ" as model +#import "../generation/glossary.typ": glossary +#import "school.typ" as model // Re-export commonly used model functions #let gls = gls diff --git a/setup/origin_models.typ b/setup/models/origin.typ similarity index 98% rename from setup/origin_models.typ rename to setup/models/origin.typ index d1ad9ab..466a4a4 100644 --- a/setup/origin_models.typ +++ b/setup/models/origin.typ @@ -1,6 +1,5 @@ -#import "/setup/variables.typ": theme -#import "setup.typ": ddlvl, macros -// #import "variables.typ" +#import "../theme/variables.typ": theme +#import "../core/macros.typ" as macros //----- CREATURE RENDERER ----- diff --git a/setup/school_model.typ b/setup/models/school.typ similarity index 98% rename from setup/school_model.typ rename to setup/models/school.typ index d41558f..0846ee2 100644 --- a/setup/school_model.typ +++ b/setup/models/school.typ @@ -1,8 +1,8 @@ //----- Project theme ----- -#import "variables.typ": theme, theme-var -#import "spacers.typ" as spacers -#import "set_tables.typ" as st -#import "macros.typ" as macros +#import "../theme/variables.typ": theme, theme-var +#import "../theme/decorations.typ" as spacers +#import "../theme/tables.typ" as st +#import "../core/macros.typ" as macros //----- Technique TSV importer ----- diff --git a/setup/setup.typ b/setup/setup.typ index b4910cc..ef13cf7 100644 --- a/setup/setup.typ +++ b/setup/setup.typ @@ -1,13 +1,13 @@ //----- Project variables ----- -#import "variables.typ": ravenous, theme, theme-var -#import "limits.typ": hunbal +#import "theme/variables.typ": ravenous, theme, theme-var +#import "core/limits.typ": hunbal #import "/data/gen/build_info.typ": build_info //----- Imports ----- -#import "model.typ" as model -#import "macros.typ" as macros -#import "symbols.typ" as symbols -#import "set_tables.typ" as st -#import "csv_table.typ" as csv_import +#import "models/document.typ" as model +#import "core/macros.typ" as macros +#import "theme/symbols.typ" as symbols +#import "theme/tables.typ" as st +#import "generation/csv-table.typ" as csv_import //----- Re-expose shared project data ----- #let ravenous = ravenous diff --git a/setup/boxes.typ b/setup/theme/boxes.typ similarity index 75% rename from setup/boxes.typ rename to setup/theme/boxes.typ index bf48512..c37e229 100644 --- a/setup/boxes.typ +++ b/setup/theme/boxes.typ @@ -1,14 +1,14 @@ -#import "setup.typ": ravhelp -#import "spacers.typ" +#import "../core/macros.typ": memo_box +#import "decorations.typ" as spacers + +#let ravhelp = memo_box #let ravex(content) = ravhelp(title: "Par exemple", content) #let ravtwoex(ex1, ex2) = ravhelp( title: "Par exemple", [#ex1 #spacers.fantasy-label("MÉCANIQUE EXCLUSIVE", theme-name: "warm") #ex2], ) -#let ravhelp = ravhelp #let ravbox(args) = ravhelp(args, title: none) #let inline_help(content) = { emph[( #content )] } - diff --git a/setup/spacers.typ b/setup/theme/decorations.typ similarity index 100% rename from setup/spacers.typ rename to setup/theme/decorations.typ diff --git a/setup/symbols.typ b/setup/theme/symbols.typ similarity index 99% rename from setup/symbols.typ rename to setup/theme/symbols.typ index f718f4d..f63906c 100644 --- a/setup/symbols.typ +++ b/setup/theme/symbols.typ @@ -1,5 +1,5 @@ #import "variables.typ": theme, theme-var -#import "limits.typ": hunbal +#import "../core/limits.typ": hunbal #let star-base-sym = theme-var("star") #let star-box = text(fill: black, top-edge: 0.5em, size: 1.3em)[#star-base-sym] diff --git a/setup/set_tables.typ b/setup/theme/tables.typ similarity index 100% rename from setup/set_tables.typ rename to setup/theme/tables.typ diff --git a/setup/themes.typ b/setup/theme/themes.typ similarity index 100% rename from setup/themes.typ rename to setup/theme/themes.typ diff --git a/setup/variables.typ b/setup/theme/variables.typ similarity index 100% rename from setup/variables.typ rename to setup/theme/variables.typ