diff --git a/module/compendiums/deadlands-core-rules.deadlands-edges.json b/module/compendiums/deadlands-core-rules.deadlands-edges.json index 547c714..a200d65 100644 --- a/module/compendiums/deadlands-core-rules.deadlands-edges.json +++ b/module/compendiums/deadlands-core-rules.deadlands-edges.json @@ -1,9 +1,9 @@ { "label": "Deadlands - Atouts", "mapping": { - "description_full": "data.description", + "description_full": "system.description", "requirements": { - "path": "data.requirements.value", + "path": "system.requirements.value", "converter": "edge_requirements" } }, diff --git a/module/compendiums/deadlands-core-rules.deadlands-hindrances.json b/module/compendiums/deadlands-core-rules.deadlands-hindrances.json index aa97cd4..1cd7e05 100644 --- a/module/compendiums/deadlands-core-rules.deadlands-hindrances.json +++ b/module/compendiums/deadlands-core-rules.deadlands-hindrances.json @@ -1,7 +1,7 @@ { "label": "Deadlands - Handicaps", "mapping": { - "description_full": "data.description" + "description_full": "system.description" }, "entries": [ { diff --git a/module/compendiums/deadlands-core-rules.deadlands-powers.json b/module/compendiums/deadlands-core-rules.deadlands-powers.json index bcec7be..97eb0c1 100644 --- a/module/compendiums/deadlands-core-rules.deadlands-powers.json +++ b/module/compendiums/deadlands-core-rules.deadlands-powers.json @@ -1,18 +1,18 @@ { "label": "Deadlands - Pouvoirs", "mapping": { - "description_full": "data.description", - "trapping": "data.trapping", + "description_full": "system.description", + "trapping": "system.trapping", "duration": { - "path": "data.duration", + "path": "system.duration", "converter": "powers_duration" }, "range": { - "path": "data.range", + "path": "system.range", "converter": "powers_range" }, "rank": { - "path": "data.rank", + "path": "system.rank", "converter": "powers_rank" } }, diff --git a/module/compendiums/swade-core-rules.swade-edges.json b/module/compendiums/swade-core-rules.swade-edges.json index 1934a62..bc28be8 100644 --- a/module/compendiums/swade-core-rules.swade-edges.json +++ b/module/compendiums/swade-core-rules.swade-edges.json @@ -1,9 +1,9 @@ { "label": "SWADE Atouts", "mapping": { - "description_full": "data.description", + "description_full": "system.description", "requirements": { - "path": "data.requirements.value", + "path": "system.requirements.value", "converter": "edge_requirements" } }, @@ -837,4 +837,4 @@ "description_full": "
\n

Les encouragements de votre héros n’inspirent pas que celui qu’ils visent. Une fois par tour, un personnage peut lancer un dé supplémentaire lorsqu’il fait une action de @Compendium[swade-core-rules.swade-rules.Support]{Soutien} en utilisant les Compétences @Compendium[swade-core-rules.swade-skills.Persuasion]{Persuasion} ou @Compendium[swade-core-rules.swade-skills.Performance]{Performance}. Il doit assigner ce dé à un autre allié (pas la cible originale) susceptible de le voir ou de l’entendre et affecte sa prochaine action, quelle qu’elle soit.

\n
" } ] -} \ No newline at end of file +} diff --git a/module/compendiums/swade-core-rules.swade-equipment.json b/module/compendiums/swade-core-rules.swade-equipment.json index b707392..c59e211 100644 --- a/module/compendiums/swade-core-rules.swade-equipment.json +++ b/module/compendiums/swade-core-rules.swade-equipment.json @@ -1,17 +1,17 @@ { "label": "SWADE Équipement", "mapping": { - "description": "data.description", + "description": "system.description", "skill": { - "path": "data.actions.skill", + "path": "system.actions.skill", "converter": "gear_skill" }, "range": { - "path": "data.range", + "path": "system.range", "converter": "gear_range" }, "ammo": { - "path": "data.ammo", + "path": "system.ammo", "converter": "gear_ammo" } }, diff --git a/module/compendiums/swade-core-rules.swade-hindrances.json b/module/compendiums/swade-core-rules.swade-hindrances.json index 99a546c..3c830e5 100644 --- a/module/compendiums/swade-core-rules.swade-hindrances.json +++ b/module/compendiums/swade-core-rules.swade-hindrances.json @@ -1,7 +1,7 @@ { "label": "SWADE Handicaps", "mapping": { - "description_full": "data.description" + "description_full": "system.description" }, "entries": [ { diff --git a/module/compendiums/swade-core-rules.swade-powers.json b/module/compendiums/swade-core-rules.swade-powers.json index e8f4769..15745b8 100644 --- a/module/compendiums/swade-core-rules.swade-powers.json +++ b/module/compendiums/swade-core-rules.swade-powers.json @@ -1,18 +1,18 @@ { "label": "SWADE Pouvoirs", "mapping": { - "description_full": "data.description", - "trapping": "data.trapping", + "description_full": "system.description", + "trapping": "system.trapping", "duration": { - "path": "data.duration", + "path": "system.duration", "converter": "powers_duration" }, "range": { - "path": "data.range", + "path": "system.range", "converter": "powers_range" }, "rank": { - "path": "data.rank", + "path": "system.rank", "converter": "powers_rank" } }, diff --git a/module/compendiums/swade-core-rules.swade-races.json b/module/compendiums/swade-core-rules.swade-races.json index b3c4504..b350580 100644 --- a/module/compendiums/swade-core-rules.swade-races.json +++ b/module/compendiums/swade-core-rules.swade-races.json @@ -1,7 +1,7 @@ { "label": "SWADE Espèces", "mapping": { - "description_full": "data.description" + "description_full": "system.description" }, "entries": [ { diff --git a/module/compendiums/swade-core-rules.swade-skills.json b/module/compendiums/swade-core-rules.swade-skills.json index 4c2ae4d..e6c72f2 100644 --- a/module/compendiums/swade-core-rules.swade-skills.json +++ b/module/compendiums/swade-core-rules.swade-skills.json @@ -1,7 +1,7 @@ { "label": "SWADE Compétences", "mapping": { - "description_full": "data.description" + "description_full": "system.description" }, "entries": [ { diff --git a/module/compendiums/swade-core-rules.swade-specialabilities.json b/module/compendiums/swade-core-rules.swade-specialabilities.json index f0c5bd0..e693cd5 100644 --- a/module/compendiums/swade-core-rules.swade-specialabilities.json +++ b/module/compendiums/swade-core-rules.swade-specialabilities.json @@ -1,7 +1,7 @@ { "label": "SWADE Special Abilities", "mapping": { - "description_full": "data.description" + "description_full": "system.description" }, "entries": [ { diff --git a/module/compendiums/swade-core-rules.swade-tables.json b/module/compendiums/swade-core-rules.swade-tables.json new file mode 100644 index 0000000..1c0027a --- /dev/null +++ b/module/compendiums/swade-core-rules.swade-tables.json @@ -0,0 +1,297 @@ +{ + "label": "SWADE Tables", + "mapping": { + "results": "results" + }, + "entries": [ + { + "id": "Battle Effects", + "name": "Battle Effects", + "description": "
See @Compendium[swade-core-rules.swade-rules.Mass Battles]{Mass Battles} for when to use this table.
" + }, + { + "id": "Creative Combat", + "name": "Creative Combat", + "description": "
Creative Combat enhances a pulp-style game with additional benefits for those who Test with a raise. See @Compendium[swade-core-rules.swade-rules.Creative Combat]{Creative Combat} on when to use these rules.
" + }, + { + "id": "Dynamic Backlash", + "name": "Dynamic Backlash", + "description": "
Normally, a Critical Failure on an arcane skill results in Fatigue. If the GM feels it should have a higher price, use this table instead. See @Compendium[swade-core-rules.swade-rules.Dynamic Backlash]{Dynamic Backlash}
" + }, + { + "id": "Fear Table", + "name": "Table de Terreur", + "description": "
\nChanger la formule de la table pour appliquer le modificateur, par exemple \"d20+2\". Ou pour faciliter les jets, utiliser la @Compendium[swade-core-rules.swade-macros.Fear Table]{Macro de Terreur} pour saisir un moificateur. Si vous utilisez la macro, ne tenez pas compte de ce message. Plus d'information sur la table de Terreur Compendium[swade-core-rules.swade-rules.Fear]{ici}
", + "results": [ + { + "_id": "YMbOpGMNMSWQKGeI", + "flags": {}, + "type": 0, + "text": "
Poussée d’adrénaline: le personnage réagit agressivement. Il agit comme s’il avait un joker pour cette action.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 1, + 3 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 1, + "rangeH": 3 + }, + { + "_id": "gU5WrSHvlyMBvPhb", + "flags": {}, + "type": 0, + "text": "
Distrait: le personnage est @Compendium[swade-core-rules.swade-rules.Distracted and Vulnerable]{Distrait} jusqu’à la fin de son prochain tour.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 4, + 6 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 4, + "rangeH": 6 + }, + { + "_id": "FYPVfaBXpn1EcVIp", + "flags": {}, + "type": 0, + "text": "
Vulnérable: le personnage est @Compendium[swade-core-rules.swade-rules.Distracted and Vulnerable]{Vulnérable} jusqu’à la fin de son prochain tour.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 7, + 9 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 7, + "rangeH": 9 + }, + { + "_id": "m0xCxQx5JbhEAqHU", + "flags": {}, + "type": 0, + "text": "
Secoué: Le personnage est @Compendium[swade-core-rules.swade-rules.Damage Effects]{Secoué}.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 10, + 12 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 10, + "rangeH": 12 + }, + { + "_id": "hUeYZXg4qGJxWbP2", + "flags": {}, + "type": 0, + "text": "
La marque de la peur : : le personnage est The hero is @Compendium[swade-core-rules.swade-rules.Stunned]{Sonné} et souffre d’une altération physique purement cosmétique — une mèche de cheveux blancs, les yeux clignant constamment ou autre manifestation physique mineure.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 13, + 13 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 13, + "rangeH": 13 + }, + { + "_id": "FjvSf97xvpgx45GQ", + "flags": {}, + "type": 0, + "text": "
Frightened: le personnage subit le Handicap @Compendium[swade-core-rules.swade-hindrances.Hesitant]{Hésitant} pour le reste de la rencontre. Il devient Paniqué s’il est déjà Hésitant.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 14, + 15 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 14, + "rangeH": 15 + }, + { + "_id": "lIkLrw4XHoD3G3rJ", + "flags": {}, + "type": 0, + "text": "
Paniqué: le personnage s’enfuit immédiatement du danger de son Allure complète et du dé de course. Il est Secoué..
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 16, + 17 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 16, + "rangeH": 17 + }, + { + "_id": "KVbHLom3qI2Vcxeu", + "flags": {}, + "type": 0, + "text": "
Phobie Mineure: le personnage gagne un Handicap Phobie mineure lié au trauma.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 18, + 19 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 18, + "rangeH": 19 + }, + { + "_id": "DNTKezLly0bjwzmk", + "flags": {}, + "type": 0, + "text": "
Phobie Majeure: le personnage gagne un Handicap Phobie majeure lié au trauma.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 20, + 21 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 20, + "rangeH": 21 + }, + { + "_id": "n4fdRgziSWDJdFrn", + "flags": {}, + "type": 0, + "text": "
Crise cardiaque: le personnage est submergé par la terreur. Son cœur palpite. Il doit faire immédiatement un jet de Vigueur à -2. En cas de Succès, il est Sonné. En cas d'Échec, il est Incapacité et décède en 2d6 rounds. En ce cas, un jet de Soins à -4 peut lui sauver la vie, il demeure alors Incapacité et est traité normalement par la suite.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 22, + 9999 + ], + "drawn": false, + "collection": null, + "resultId": null, + "rangeL": 22, + "rangeH": 9999 + } + ] + }, + { + "id": "Injury Table", + "name": "Table des Sequelles", + "description": "
Si @Compendium[swade-core-rules.swade-rules.Damage Effects]{Incapacité} et que le je de Vigueur est un échec, lancez sur cette tabele.
", + "results": [ + { + "_id": "iXgW3OkyxXMDbdaM", + "flags": {}, + "type": 0, + "text": "
Entrejambe: si la blessure est permanente, inutile de penser à la perpétuation de l’espèce sans une chirurgie miraculeuse ou une puissante magie.
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 2, + 2 + ], + "drawn": false, + "rangeL": 2, + "rangeH": 2 + }, + { + "_id": "kRX0m97hCMUbTsUn", + "flags": {}, + "type": 0, + "text": "
Bras: le bras touché est inutilisable (tirez au sort le bras touché si l’attaque n’était pas ciblée).
", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 3, + 4 + ], + "drawn": false, + "rangeL": 3, + "rangeH": 4 + }, + { + "_id": "MeHrpROUTcrwTCur", + "flags": {}, + "type": 0, + "text": "

Tripes: votre héros s’est pris un coup dans le tronc. Tirez 1d6 : [[1d6]]:

1–2\tFracture: @Compendium[swade-core-rules.swade-rules.Traits]{Agilité} réduite d'1 dé (mini d4).

3–4\tContusion: @Compendium[swade-core-rules.swade-rules.Traits]{Vigueur} réduite d'1 dé (minimum d4).

5–6\tDéchiture: @Compendium[swade-core-rules.swade-rules.Traits]{Force} réduite d'1 dé (minimum d4).

", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 5, + 9 + ], + "drawn": false, + "rangeL": 5, + "rangeH": 9 + }, + { + "_id": "Z0RJ9sRyUMzBQtxb", + "flags": {}, + "type": 0, + "text": "
Jambes: Gagnez @Compendium[swade-core-rules.swade-hindrances.Slow]{Lent} @Compendium[swade-core-rules.swade-rules.Hindrances]{Handicap} (Mineur), ou Majeur si déja Lent./div>", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 10, + 11 + ], + "drawn": false, + "rangeL": 10, + "rangeH": 11 + }, + { + "_id": "9qO70vrlPWNw81cy", + "flags": {}, + "type": 0, + "text": "

Tête: une grave blessure à la tête. Lancez [[1d6]]:

1–3 \tBalafre: le héros reçoit le Handicap Moche (Majeur) @Compendium[swade-core-rules.swade-rules.Hindrances]{Handicap}.

4–5\tBorgne: le héros reçoit le Handicap Borgne (ou Aveugle s’il était déjà Borgne).

6 Cerveau touché: l’Intellect est réduit d’un cran (minimum d4).

", + "img": "icons/svg/d20-black.svg", + "weight": 1, + "range": [ + 12, + 12 + ], + "drawn": false, + "rangeL": 12, + "rangeH": 12 + } + ] + }, + { + "id": "Out of Control", + "name": "Out of Control", + "description": "
Damage caused by an Out of Control roll doesn’t trigger another Out of Control roll, but a Wound triggers a Critical Hit as usual. See @Compendium[swade-core-rules.swade-rules.Chases and Vehicles]{Maneuvering Skills} to learn more
" + }, + { + "id": "Reaction Table", + "name": "Reaction Table", + "description": "
The GM can use the table below to roll or choose a character or group's initial attitude. See @Compendium[swade-core-rules.swade-skills.Persuasion]{Persuasion} on how to use this table.
" + }, + { + "id": "Vehicle Critical Hits", + "name": "Vehicle Critical Hits", + "description": "
See @Compendium[swade-core-rules.swade-rules.Chases and Vehicles]{Chases and Vehicles}
" + } + ] +} \ No newline at end of file diff --git a/module/module.json b/module/module.json index 25c372d..1ffc761 100644 --- a/module/module.json +++ b/module/module.json @@ -1,55 +1,59 @@ { - "name": "swade-fr-content", "title": "SWADE Content en Français - *NON-OFFICIEL*", "description": "Traduction française du système SWADE

*** Join the official Discord server: Official Discord

*** Rejoignez la communauté Francophone: Francophone Discord

", - "author": "Team Swade, La Fonderie", "authors": [ { "name": "BoboursToutCool", - "discord": "BoboursToutCool#9787" + "discord": "BoboursToutCool#9787", + "flags": {} }, { "name": "Cyril - Gronyon- Ronseaux", - "discord": "Gronyon#0843" + "discord": "Gronyon#0843", + "flags": {} }, { "name": "Kyane von Schnitzel", - "discord": "Kyane von Schnitzel#8654" + "discord": "Kyane von Schnitzel#8654", + "flags": {} }, { "name": "Lazarius", - "discord": "Lazarius#0965" + "discord": "Lazarius#0965", + "flags": {} }, { "name": "LeRatierBretonnien", - "discord": "LeRatierBretonnien#2065" + "discord": "LeRatierBretonnien#2065", + "flags": {} }, { "name": "Sasmira", - "discord": "Sasmira#4566" + "discord": "Sasmira#4566", + "flags": {} }, { "name": "Sharilaa", - "discord": "sharilaa#8389" + "discord": "sharilaa#8389", + "flags": {} }, { "name": "U~man", - "discord": "U~man#2374" + "discord": "U~man#2374", + "flags": {} }, { - "name":"Space Calamar", - "discord": "space Calamar#7444" + "name": "Space Calamar", + "discord": "space Calamar#7444", + "flags": {} }, { - "name": "X.O. de Vorcen" + "name": "X.O. de Vorcen", + "flags": {} } ], "url": "https://gitlab.com/sasmira/swade-fr", - "flags": {}, - "version": "0.23.2.0", - "minimumCoreVersion": "0.7.9", - "compatibleCoreVersion": "9", - "scripts": [], + "version": "2.0.0", "esmodules": [ "modules/swade-fr-init.js" ], @@ -60,35 +64,43 @@ { "lang": "fr", "name": "French (FRANCE)", - "path": "fr.json" + "path": "fr.json", + "flags": {} } ], - "packs": [], - "system": [], - "dependencies": [ - { - "name": "babele", - "type": "module", - "manifest": "https://gitlab.com/riccisi/foundryvtt-babele/raw/master/module/module.json" - }, - { - "name": "swade", - "type": "system" - }, - { - "name": "swade-fr", - "type": "module" - }, - { - "name": "dice-so-nice", - "type": "module", - "manifest": "https://gitlab.com/riccisi/foundryvtt-dice-so-nice/-/raw/master/module/module.json" - } - ], - "socket": false, "manifest": "https://gitlab.com/sasmira/swade-fr-content/-/raw/master/module/module.json", "download": "https://gitlab.com/sasmira/swade-fr-content/-/jobs/artifacts/v0.23.2.0/raw/swade-fr-content.zip?job=build", - "protected": false, - "coreTranslation": false, - "library": false -} + "id": "swade-fr-content", + "relationships": { + "requires": [ + { + "id": "babele", + "type": "module", + "manifest": "https://gitlab.com/riccisi/foundryvtt-babele/raw/master/module/module.json", + "compatibility": {} + }, + { + "id": "swade-fr", + "type": "module", + "compatibility": {} + }, + { + "id": "dice-so-nice", + "type": "module", + "manifest": "https://gitlab.com/riccisi/foundryvtt-dice-so-nice/-/raw/master/module/module.json", + "compatibility": {} + } + ], + "systems": [ + { + "id": "swade", + "type": "system", + "compatibility": {} + } + ] + }, + "compatibility": { + "minimum": "9", + "verified": "10.287" + } +} \ No newline at end of file diff --git a/module/modules/swade-fr-init.js b/module/modules/swade-fr-init.js index 3c103d8..84899b2 100644 --- a/module/modules/swade-fr-init.js +++ b/module/modules/swade-fr-init.js @@ -208,7 +208,7 @@ function registerUsageCount( registerKey ) { game.settings.set(registerKey, "world-key", worldKey ) } // Simple API counter - let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.data.version}"` + let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"` $.ajax(regURL) /* -------------------------------------------- */ }