Closed Araluen124 closed 10 months ago
what does the description of the staff looks like ?
There is the description, copied from the edit mode : L'extrémité supérieure de ce bâton est gravée de têtes de monstres et d'animaux. Lorsque vous le maniez, vous bénéficiez d'un bonus de circonstances de +2 aux tests de Nature pour identifier des animaux
Activation Lancer un sort
Effet Vous dépensez un certain nombre de charges du bâton pour lancer un sort de sa liste.
Tour de magie @UUID[Compendium.pf2e.spells-srd.Item.tXa5vOu5giBNCjdR]{Connaître le chemin} Niveau 1 @UUID[Compendium.pf2e.spells-srd.Item.4YnON9JHYqtLzccu]{Convocation d'animal}, @UUID[Compendium.pf2e.spells-srd.Item.EE7Q5BHIrfWNCPtT]{Corps runique}
Conditions de fabrication Fournir une incantation de tous les sorts de la liste et à tous les niveaux énumérés.
yeah, the issue is the labels like Tour de magie
, i am gonna look for a way to handle it
I have put in place a way to handle it.
It is not the most straight forward way due to the fact that the description is not using any localization but is done via babele. It is a bit tricky.
I have added a new setting in version 2.22.0
called Staff Labels Regex
, it must contain all the label formats that your world use, so if all your staves are translated in french, the setting should look like that:
tour de magie|niveau 1|niveau 2|niveau 3|niveau 4|niveau 5|niveau 6|niveau 7|niveau 8|niveau 9|niveau 10
Make sure that all your staves use that specific format though, otherwise, you gonna have to tweak the setting.
I am using your module with the French translation and somehow, i can't prepare any staves while the french translation is active. (The preparation still works in english) This is the translation i am using : https://gitlab.com/pathfinder-fr/foundryvtt-pathfinder2-fr