First draft of icons
Build Failed The Ravenous rulebook build failed.
Ravenous/ravenous_typst/pipeline/head There was a failure building this commit Details

This commit is contained in:
Dandaedre 2026-08-19 23:21:30 +02:00
parent 87acbe26de
commit f7c596e60a
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
22 changed files with 559 additions and 59 deletions

View File

@ -1,12 +1,7 @@
#import "/setup/setup.typ": (
bigscope, csv-table, ddlvl, gls, school_presentation, st, theme,
bigscope, csv-table, ddlvl, gls, macros, school_presentation, st, theme,
)
// TODO: Finish all these symbols with a repeat
#let toxlvl(ar) = { ddlvl(ar) }
#let timelvl(ar) = { ddlvl(ar) }
#let winelvl(ar) = { ddlvl(ar) }
La brasserie est composée des trois étapes suivantes :
D'abord, choisir le ou les ferments ; la méthode de préparation ainsi que le temps de fermentation.
@ -15,9 +10,9 @@ Comme pour les alliages de la forge, associer plusieurs ferments permet d'additi
L'association des ferments, préparation et méthode de fermentation vous donne une valeur de titrage, qu'il est important de noter pour la seconde étape.
#let scope = bigscope
#scope.insert("toxlvl", toxlvl)
#scope.insert("timelvl", timelvl)
#scope.insert("winelvl", winelvl)
#scope.insert("toxlvl", macros.toxlvl)
#scope.insert("timelvl", macros.timelvl)
#scope.insert("winelvl", macros.winelvl)
#csv-table(
"/data/src/craft/brewry_ferments.csv",
evaluate: "markup",
@ -27,7 +22,7 @@ L'association des ferments, préparation et méthode de fermentation vous donne
Une fois le ferment choisi, viendra l'étape de la préparation, puis de la fermentation à proprement parler.
Le temps de préparation de la boisson est égal à son #timelvl(1) en jours et le temps de fermentation est égal à son #timelvl(1) en semaines.
Le temps de préparation de la boisson est égal à son #macros.timelvl(1) en jours et le temps de fermentation est égal à son #macros.timelvl(1) en semaines.
#csv-table(
"/data/src/craft/brewry_methods.csv",
@ -37,7 +32,7 @@ Le temps de préparation de la boisson est égal à son #timelvl(1) en jours et
)
Ensuite, il convient d'investir ses #winelvl(1) dans l'un des effets principaux suivants, et le reste dans les effets supplémentaires :
Ensuite, il convient d'investir ses #macros.winelvl(1) dans l'un des effets principaux suivants, et le reste dans les effets supplémentaires :
#csv-table(
"/data/src/craft/brewry_main_effects.csv",
evaluate: "markup",
@ -45,7 +40,7 @@ Ensuite, il convient d'investir ses #winelvl(1) dans l'un des effets principaux
scope: scope,
)
Après avoir choisi l'effet principal de la boisson, il est possible de dépenser les #winelvl(1) restant dans le tableau suivant :
Après avoir choisi l'effet principal de la boisson, il est possible de dépenser les #macros.winelvl(1) restant dans le tableau suivant :
#csv-table(
"/data/src/craft/brewry_secondary_effects.csv",
@ -67,4 +62,4 @@ Enfin, il ne reste plus qu'à y ajouter les dernières finitions dont leur diffi
Les effets d'une boisson durent en général cinq à six heures avant de disparaître.
Au vu de la puissance des effets et de la toxicité des éléments, il est impossible de mixer plusieurs effets, et boire plusieurs alcools différents serait pure folie, n'entraînant aucun gain substantiel#footnote[Sauf si l'on considère une gueule de bois astrale un gain substantiel.]. Ainsi, boire une boisson quand la précédente n'est pas finie accroît son jet de toxicité de #ddlvl(2, plus: true) et remplace les effets de l'ancienne boisson par les nouveaux.
Au vu de la puissance des effets et de la toxicité des éléments, il est impossible de mixer plusieurs effets, et boire plusieurs alcools différents serait pure folie, n'entraînant aucun gain substantiel#footnote[Sauf si l'on considère une gueule de bois astrale un gain substantiel.]. Ainsi, boire une boisson quand la précédente n'est pas finie accroît son jet de toxicité de #macros.ddlvl(2, plus: true) et remplace les effets de l'ancienne boisson par les nouveaux.

View File

@ -24,7 +24,7 @@
custom:
icon: true
short:
typst: 'box(height: 0.65em, baseline: 0.5pt, inset: 0pt, image("/images/icons/blood.png"))'
typst: 'symbols.blood-box'
description: Sangressence absorbée après une chasse
group: bad
@ -33,6 +33,6 @@
custom:
icon: true
short:
typst: 'box(height: 0.65em, baseline: 0.5pt, inset: 0pt, image("/images/icons/bolt-lightning-solid-full.svg"))'
typst: 'symbols.jauge-box'
description: Jauge de sangressence des chasseurs
group: bad

View File

@ -422,65 +422,82 @@
- key: ca_torque
short:
typst: "box([torque])"
short: Torque
typst: "symbols.torque-box"
custom:
icon: true
long: Torque
description: 'Le Torque est la capacité d''imposer sa volonté sur le monde physique. \longreference{sec:torque}{Torque}.'
group: Termes utilisés
- key: rl_precision
short: Précision
# symbol: '$\mathbb{P}$'
custom:
icon: true
short:
typst: "symbols.precision-box"
description: 'Noté sous la forme de bonus #resist(1) ou malus #resist(-1), à ajouter au seuil de toutes les attaques portées.'
group: Termes utilisés
- key: rl_parmure
long: Perce Armure
short: PA
# symbol: \arpierce{}
custom:
icon: true
short:
typst: "symbols.parmure-box"
description: 'Perce Armure (X), inflige X points de dégâts directement aux points de vie d''une cible, en ignorant complètement son armure. Si la localisation affectée possède le trait @rl_inpenetrable, cet effet est ignoré à la place.'
group: Termes utilisés
- key: rl_arbreak
short: AB
custom:
icon: true
short:
typst: "symbols.arbreak-box"
long: Brise Armure
# symbol: \arbreakk{}
description: "Lorsqu'une attaque touche, si elle n'est pas parée et dépasse la valeur de protection de l'armure (avant application de toutes les résistances et faiblesses), celle-ci pourra lui infliger autant de points de perte d'intégrité qu'elle n'en a dépassé l'armure, jusqu'à un maximum égal à sa valeur de brise armure"
group: Termes utilisés
- key: rl_am
short: AM
custom:
icon: true
short:
typst: "symbols.am-box"
long: Anti-matériel
# symbol: \arbreakk{}
description: "Si une attaque dispose de la capacité anti-matériel, celle-ci fera aussi perdre autant de points d'intégrité à la zone touchée de l'armure que sa valeur d'anti-matériel quels que soient les dégâts infligés par l'attaque "
group: Termes utilisés
- key: rl_rmax
short: R
long: réussites maximum
# symbol: \arbreakk{}
custom:
icon: true
short:
typst: "symbols.rmax-box"
long: Réussites maximum
description: "Nombres de réussites maximum possible à infliger avec une arme ou une technique une fois les réussites défensives prises en compte."
group: Termes utilisés
- key: rl_reload
short: Rl
long: rechargement
# symbol: \arbreakk{}
custom:
icon: true
short:
typst: "symbols.reload-box"
long: Rechargement
description: "Dénote d'un temps en actions qui doit être dépensé entre chaque attaque pour recharger l'arme et pouvoir l'utiliser de nouveau."
group: Termes utilisés
# TODO: Fill
- key: rl_protection
short: PT
long: protection
# symbol: \arbreakk{}
custom:
icon: true
short:
typst: "symbols.protection-box"
long: Protection
description: "Quantitée de dégâts mitigée par cet équipement ou protection, tant qu'il lui reste au moins un point d'intégrité."
group: Termes utilisés
# TODO: Fill
- key: rl_integrite
short: Ing
long: intégrité
# symbol: \arbreakk{}
custom:
icon: true
short:
typst: "symbols.integrity-box"
long: Intégrité
description: "Représente la durabilité d'une armure ou protection, tant que cet équipement ou objet possède au moins un point d'intégrité, toute la protection est retirée des dégâts subits."
group: Termes utilisés
@ -511,40 +528,64 @@
group: Termes utilisés
- key: ar_cst
short: '\$'
custom:
icon: true
short:
typst: "symbols.cost-box"
long: Coût
description: "Le cout et la rareté sont interchangeables et representent la difficulté d'obtenir un ingrédient \reference{ssec:negociations}{negociations}."
group: Termes d'artisanat
- key: ar_end
short: 'f'
custom:
icon: true
short:
typst: "symbols.end-box"
long: Finition
description: "Coût de la dernière étape d'artisanat, portant plusieurs noms (finitions, transmutation etc..) et dont le niveau, noté @ar_end:short dans les tableaux ne doit pas dépassé votre niveau de spécialité."
group: Termes d'artisanat
- key: ar_tier
short: 't'
# \def \tier{\faBookReader}
# custom:
# alts: "Tier"
custom:
icon: true
short:
typst: "symbols.tier-box"
long: Maîtrise
description: "Indicateur de Maîtrise nécéssaire la manipulation d'un ingrédient. La spécialité éponyme sert donc à indiquer à quels ingrédients un chasseur à accès. Dans les tableaux elle est symbolisée par le symbole @ar_tier:short"
group: Termes d'artisanat
- key: ar_lvl
short: 'Nsse'
custom:
icon: true
short:
typst: "symbols.lvl-box"
long: Niveau d'artisanat
description: "Indicateur de niveau d'artisanat. Le niveau d'artisanat d'une recette se calcule en sommant le niveau de chaque ingrédient. Une recette ne peut aboutir que si sa difficulté est inférieure ou égale au niveau d'artisanat du créateur ; et sert ainsi à déterminer ce qu'il lui est possible de faire."
group: Termes d'artisanat
- key: ar_time
short: 'Ti'
custom:
icon: true
short:
typst: "symbols.time-box"
long: Temps
description: "Unitée de temps d'artisanat, varie selon l'artisanat en question."
group: Termes d'artisanat
- key: ar_tox
short: 'X'
custom:
icon: true
short:
typst: "symbols.tox-box"
long: Toxicité
description: "Unitée de @rl_toxine, consommer un produit doté de cette valeur rempliera la @rl_jauge_toxine d'autant de points."
group: Termes d'artisanat
- key: ar_wine
custom:
icon: true
short:
typst: "symbols.wine-box"
long: Wine
description: "Unitée de liée a la brasserie, represente la puissance de la préparation et doit etre consommée dans divers effets."
group: Termes d'artisanat

1
images/icons/coins.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M184,89.57V84c0-25.08-37.83-44-88-44S8,58.92,8,84v40c0,20.89,26.25,37.49,64,42.46V172c0,25.08,37.83,44,88,44s88-18.92,88-44V132C248,111.3,222.58,94.68,184,89.57ZM232,132c0,13.22-30.79,28-72,28-3.73,0-7.43-.13-11.08-.37C170.49,151.77,184,139,184,124V105.74C213.87,110.19,232,122.27,232,132ZM72,150.25V126.46A183.74,183.74,0,0,0,96,128a183.74,183.74,0,0,0,24-1.54v23.79A163,163,0,0,1,96,152,163,163,0,0,1,72,150.25Zm96-40.32V124c0,8.39-12.41,17.4-32,22.87V123.5C148.91,120.37,159.84,115.71,168,109.93ZM96,56c41.21,0,72,14.78,72,28s-30.79,28-72,28S24,97.22,24,84,54.79,56,96,56ZM24,124V109.93c8.16,5.78,19.09,10.44,32,13.57v23.37C36.41,141.4,24,132.39,24,124Zm64,48v-4.17c2.63.1,5.29.17,8,.17,3.88,0,7.67-.13,11.39-.35A121.92,121.92,0,0,0,120,171.41v23.46C100.41,189.4,88,180.39,88,172Zm48,26.25V174.4a179.48,179.48,0,0,0,24,1.6,183.74,183.74,0,0,0,24-1.54v23.79a165.45,165.45,0,0,1-48,0Zm64-3.38V171.5c12.91-3.13,23.84-7.79,32-13.57V172C232,180.39,219.59,189.4,200,194.87Z"></path></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M238.76,51.73A8,8,0,0,0,232,48H40a8,8,0,0,0-5.66,13.66L76.69,104,34.34,146.34A8,8,0,0,0,40,160H173.62l-28.84,60.56a8,8,0,1,0,14.44,6.88l80-168A8,8,0,0,0,238.76,51.73ZM181.23,144H59.31l34.35-34.34a8,8,0,0,0,0-11.32L59.31,64h160Z"></path></svg>

After

Width:  |  Height:  |  Size: 351 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="76" height="76" fill="#000000" viewBox="0 0 256 256"><path d="M211.31,196.69A16,16,0,0,1,200,224H56a16,16,0,0,1-11.32-27.31,1.59,1.59,0,0,0,.13-.13L116.43,128,44.82,59.44a1.59,1.59,0,0,0-.13-.13A16,16,0,0,1,56,32H200a16,16,0,0,1,11.32,27.31,1.59,1.59,0,0,0-.13.13L139.57,128l71.61,68.56A1.59,1.59,0,0,0,211.31,196.69Z"></path></svg>

After

Width:  |  Height:  |  Size: 379 B

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M139.8 368.8L65 99.7C64.3 97.2 64 94.7 64 92.2C64 76.6 76.6 64 92.2 64L546.4 64C562.7 64 576 77.2 576 93.6C576 95.2 575.9 96.9 575.6 98.5L498.6 560.1C497.1 569.3 489.1 576 479.8 576C470.6 576 462.7 569.4 461.1 560.4L400 224L371.2 367.9C369.3 377.2 361.1 384 351.6 384C342.4 384 334.4 377.8 332.2 368.9L304 256L274.6 432.2C273.1 441.3 265.2 448 256 448C246.8 448 238.9 441.3 237.4 432.2L208 256L179.9 368.3C177.6 377.5 169.3 384 159.8 384C150.5 384 142.3 377.8 139.8 368.8z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M139.8 368.8L65 99.7C64.3 97.2 64 94.7 64 92.2C64 76.6 76.6 64 92.2 64L546.4 64C562.7 64 576 77.2 576 93.6C576 95.2 575.9 96.9 575.6 98.5L498.6 560.1C497.1 569.3 489.1 576 479.8 576C470.6 576 462.7 569.4 461.1 560.4L400 224L371.2 367.9C369.3 377.2 361.1 384 351.6 384C342.4 384 334.4 377.8 332.2 368.9L304 256L274.6 432.2C273.1 441.3 265.2 448 256 448C246.8 448 238.9 441.3 237.4 432.2L208 256L179.9 368.3C177.6 377.5 169.3 384 159.8 384C150.5 384 142.3 377.8 139.8 368.8z"/></svg>

Before

Width:  |  Height:  |  Size: 703 B

After

Width:  |  Height:  |  Size: 704 B

20
images/icons/level.svg Normal file
View File

@ -0,0 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
<!-- Tier chevrons -->
<path fill="currentColor" d="
M128 30
L218 112
L190 140
L128 84
L66 140
L38 112
Z
M128 112
L218 194
L190 222
L128 166
L66 222
L38 194
Z
"></path>
</svg>

After

Width:  |  Height:  |  Size: 331 B

View File

@ -0,0 +1,39 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="Precision icon">
<g fill="currentColor">
<!-- Main P body -->
<path d="
M52 42
H142
C184 42 210 68 210 108
C210 149 183 176 140 176
H102
L126 148
H141
C165 148 180 133 180 109
C180 85 165 70 141 70
H82
V214
L52 234
Z
"></path>
<!-- Target ring -->
<path fill-rule="evenodd" d="
M130 84
A34 34 0 1 1 130 152
A34 34 0 1 1 130 84
M130 100
A18 18 0 1 0 130 136
A18 18 0 1 0 130 100
"></path>
</g>
<!-- Crosshair cuts -->
<g stroke="white" stroke-width="6">
<line x1="130" y1="80" x2="130" y2="103"></line>
<line x1="130" y1="133" x2="130" y2="157"></line>
<line x1="91" y1="118" x2="114" y2="118"></line>
<line x1="146" y1="118" x2="169" y2="118"></line>
</g>
</svg>

After

Width:  |  Height:  |  Size: 928 B

View File

@ -0,0 +1,68 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-label="Precision icon">
<g fill="currentColor">
<!-- Predatory, hooked P silhouette -->
<path d="
M48 30
H132
C181 30 214 58 214 104
C214 143 190 168 151 174
L170 197
L134 187
L115 224
L104 180
H82
V214
L48 236
Z
M82 64
V148
H132
C160 148 179 132 179 106
C179 80 161 64 132 64
Z
"></path>
<!-- Inner sight / iris -->
<path fill-rule="evenodd" d="
M132 78
L147 92
L170 96
L157 114
L160 138
L138 132
L120 146
L114 124
L94 113
L112 98
L116 78
Z
M132 96
A17 17 0 1 0 132 130
A17 17 0 1 0 132 96
"></path>
<!-- Central fang / needle -->
<path d="
M132 101
L139 113
L132 151
L125 113
Z
"></path>
<!-- Small hunting marks -->
<path d="M132 68 L127 84 H137 Z"></path>
<path d="M176 112 L157 106 V118 Z"></path>
<path d="M88 112 L107 106 V118 Z"></path>
</g>
<!-- Eye slit / precision cut -->
<path d="M120 113 Q132 104 144 113 Q132 122 120 113 Z" fill="white"></path>
<!-- Pinpoint -->
<circle cx="132" cy="113" r="4.5" fill="currentColor"></circle>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

34
images/icons/reload.svg Normal file
View File

@ -0,0 +1,34 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
<!-- Reload loop -->
<path fill="currentColor" d="
M128 42
C174 42 211 75 218 118
H184
C178 94 155 76 128 76
C94 76 67 103 67 137
C67 171 94 198 128 198
C153 198 175 183 184 161
L216 174
C202 209 168 232 128 232
C75 232 33 190 33 137
C33 84 75 42 128 42
Z
M218 118
L174 91
L218 64
Z
"></path>
<!-- Small predatory teeth -->
<path fill="currentColor" d="
M47 103 L28 110 L44 121 Z
M38 137 L18 147 L39 155 Z
M47 172 L30 188 L54 187 Z
M76 207 L68 230 L91 215 Z
M111 224 L109 246 L128 226 Z
M157 220 L166 241 L176 213 Z
"></path>
</svg>

After

Width:  |  Height:  |  Size: 747 B

35
images/icons/rmax.svg Normal file
View File

@ -0,0 +1,35 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
<!-- Crown -->
<path fill="currentColor" d="
M70 48
L70 20
L92 37
L112 12
L132 37
L154 20
L154 48
Z
"></path>
<!-- R -->
<path fill="currentColor" d="
M58 76
H132
C176 76 200 98 200 133
C200 159 184 177 155 184
L205 232
H164
L122 191
H94
V232
H58
Z
M94 106
V158
H128
C151 158 164 149 164 132
C164 115 151 106 128 106
Z
"></path>
</svg>

After

Width:  |  Height:  |  Size: 566 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="76" height="76" fill="#000000" viewBox="0 0 256 256"><path d="M128,16C70.65,16,24,60.86,24,116c0,34.1,18.27,66,48,84.28V216a16,16,0,0,0,16,16h8a4,4,0,0,0,4-4V200.27a8.17,8.17,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v28a4,4,0,0,0,4,4h16a4,4,0,0,0,4-4V200.27a8.17,8.17,0,0,1,7.47-8.25,8,8,0,0,1,8.53,8v28a4,4,0,0,0,4,4h8a16,16,0,0,0,16-16V200.28C213.73,182,232,150.1,232,116,232,60.86,185.35,16,128,16ZM92,152a20,20,0,1,1,20-20A20,20,0,0,1,92,152Zm72,0a20,20,0,1,1,20-20A20,20,0,0,1,164,152Z"></path></svg>

After

Width:  |  Height:  |  Size: 543 B

37
images/icons/tier.svg Normal file
View File

@ -0,0 +1,37 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
<!-- Open book -->
<path fill="currentColor" d="
M24 52
C61 47 96 55 128 78
C160 55 195 47 232 52
V205
C194 199 160 207 128 230
C96 207 62 199 24 205
Z
M42 72
V184
C71 183 96 190 117 203
V91
C94 77 69 71 42 72
Z
M139 91
V203
C160 190 185 183 214 184
V72
C187 71 162 77 139 91
Z
" fill-rule="evenodd"></path>
<!-- Small page cuts -->
<path d="
M55 103 Q84 103 105 116
M55 128 Q84 128 105 141
M55 153 Q84 153 105 166
M151 116 Q172 103 201 103
M151 141 Q172 128 201 128
M151 166 Q172 153 201 153
" fill="none" stroke="currentColor" stroke-width="7" stroke-linecap="round"></path>
</svg>

After

Width:  |  Height:  |  Size: 816 B

31
images/icons/time.svg Normal file
View File

@ -0,0 +1,31 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
<!-- Simplified hourglass / cost -->
<path fill="currentColor" d="
M58 28
H198
V52
H190
C188 83 174 105 151 128
C174 151 188 173 190 204
H198
V228
H58
V204
H66
C68 173 82 151 105 128
C82 105 68 83 66 52
H58
Z
M90 52
C92 70 99 83 111 96
H145
C157 83 164 70 166 52
Z
M128 151
L96 188
H160
Z
"></path>
</svg>

After

Width:  |  Height:  |  Size: 522 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="76" height="76" fill="#000000" viewBox="0 0 256 256"><path d="M205.33,103.67,183.56,29.74A8,8,0,0,0,175.89,24H80.11a8,8,0,0,0-7.67,5.74L50.67,103.67a63.46,63.46,0,0,0,17.42,64.67A87.41,87.41,0,0,0,120,191.63V232H88a8,8,0,1,0,0,16h80a8,8,0,1,0,0-16H136V191.63a87.39,87.39,0,0,0,51.91-23.29A63.48,63.48,0,0,0,205.33,103.67ZM86.09,40h83.82L190,108.19c.09.3.17.6.25.9-21.42,7.68-45.54-1.6-58.63-8.23C106.43,88.11,86.43,86.49,71.68,88.93Z"></path></svg>

After

Width:  |  Height:  |  Size: 495 B

31
images/icons/wine.svg Normal file
View File

@ -0,0 +1,31 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
<!-- Simplified chalice / vessel -->
<path fill="currentColor" d="
M78 26
H178
L190 86
C192 96 193 104 193 112
C193 151 169 182 140 190
V216
H169
V232
H87
V216
H116
V190
C87 182 63 151 63 112
C63 104 64 96 66 86
Z
M88 50
L82 82
H174
L168 50
Z
M81 104
C82 138 101 163 128 163
C155 163 174 138 175 104
Z
"></path>
</svg>

After

Width:  |  Height:  |  Size: 535 B

View File

@ -18,3 +18,6 @@
#include "chapters/origines.typ"
#include "chapters/schools/schools.typ"
#include "chapters/artisanat.typ"
// Tests
#include "symbol_test.typ"

View File

@ -1,31 +1,24 @@
// ----- Project theme -----
#import "variables.typ": theme, theme-var
#import "symbols.typ" as symbols
#import "limits.typ": hunbal
#import "@preview/glossarium:0.5.10": gls
// ----- The ubiquitous ddlvl macro -----
#let ddlvl(n, plus: false, max_number: 5) = {
let star = text(fill: black, top-edge: 0.5em, size: 1.3em)[#theme-var("star")]
let empty-star = text(
fill: white,
size: 1.3em,
top-edge: 0.5em,
stroke: 0.6pt + black,
)[#theme-var("star")]
let plus = if plus {
"+"
} else {
""
}
if n == 0 {
empty-star
symbols.empty-star-box
} else if n < 0 {
[−#ddlvl(-n)]
} else if n > max_number {
[#plus#n#theme-var("star")]
[#plus#n#symbols.star-box]
} else {
plus + star * n
plus + symbols.star-box * n
}
}
@ -33,6 +26,39 @@
ddlvl(n, plus: plus, max_number: 4)
}
// ----- Generic repeating macro -----
//
// Examples:
// #repeat(3, [X]) -> XXX
// #repeat(3, [@ar_lvl]) -> @ar_lvl @ar_lvl @ar_lvl
// #repeat(-2, [X]) -> −XX
// #repeat(6, [X], max: 5) -> 6X
// #repeat(3, [X], plus: true) -> +XXX
//
#let repeat(
n,
term,
plus: false,
max-number: 5,
empty: none,
) = {
let prefix = if plus { "+" } else { "" }
if n == 0 {
empty
} else if n < 0 {
[−#repeat(-n, term, max-number: max-number)]
} else if n > max-number {
[#prefix#n#term]
} else {
prefix + term * n
}
}
#let toxlvl(lvl) = { repeat(lvl, symbols.tox-box, max-number: 3) }
#let winelvl(lvl) = { repeat(lvl, symbols.wine-box, max-number: 3) }
#let timelvl(lvl) = { repeat(lvl, symbols.time-box, max-number: 3) }
// ----- Difficulty level macro -----
#let difficulty-stars(difficulty, max: 5) = {
for i in range(max) {
@ -118,4 +144,5 @@
footnote: footnote,
reference: noop,
mecaniquejeu: mecaniquejeu,
symbols: symbols,
)

View File

@ -5,6 +5,7 @@
// ----- 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
@ -17,6 +18,7 @@
#let gls-description = model.gls-description
#let macros = macros
#let ddlvl = macros.ddlvl
#let symbols = symbols
#let hunbal = hunbal
#let bigscope = macros.bigscope
#let csv-table = csv_import.csv-table

130
setup/symbols.typ Normal file
View File

@ -0,0 +1,130 @@
#import "variables.typ": theme, theme-var
#import "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]
#let empty-star-box = text(
fill: white,
size: 1.3em,
top-edge: 0.5em,
stroke: 0.6pt + black,
)[#star-base-sym]
#let blood-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/blood.png"),
)
#let jauge-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/bolt-lightning-solid-full.svg"),
)
#let torque-box = box(
height: 0.75em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/torque_color.png"),
)
#let precision-box = text(fill: green, box(
height: 0.85em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/precision.svg"),
))
#let parmure-box = text(fill: green, box(
height: 0.85em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/armor_pierce.png"),
))
#let arbreak-box = text(fill: green, box(
height: 0.75em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/arbreakk_color.png"),
))
#let am-box = box(
height: 0.75em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/antimaterial.png"),
)
#let rmax-box = box(
height: 0.85em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/rmax.svg"),
)
#let reload-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/reload.svg"),
)
#let protection-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/protection.png"),
)
#let integrity-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/integrity.png"),
)
#let cost-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/coins.svg"),
)
#let end-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/flag-banner.svg"),
)
#let tier-box = box(
height: 0.75em,
baseline: 0.2pt,
inset: 0pt,
image("/images/icons/tier.svg"),
)
#let lvl-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/level.svg"),
)
#let time-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/time.svg"),
)
#let tox-box = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/skull-fill.svg"),
)
#let wine-box(..args) = box(
height: 0.65em,
baseline: 0.5pt,
inset: 0pt,
image("/images/icons/wine-fill.svg"),
)

2
symbol_test.typ Normal file
View File

@ -0,0 +1,2 @@
#import "/setup/setup.typ": macros, symbols
This is a test of symbols, in various environments: @blood:short, @jauge:short, @ar_end, @ar_tier, @ar_lvl, @ar_time, @ar_tox, @ar_wine, @ar_cst, @rl_integrite, @rl_protection, @rl_reload, @rl_rmax, @rl_am, @rl_arbreak, @rl_parmure, @rl_precision, @ca_torque