diff --git a/system/lang/en-en.json b/system/lang/en-en.json index c6b7c57..795f7fe 100644 --- a/system/lang/en-en.json +++ b/system/lang/en-en.json @@ -311,6 +311,7 @@ "choose_one_ring": "Pick one", "choose_one_skill": "Pick one", "or": "OR", + "and": "AND", "part0": { "intro": "You can use this sheet to fill in your answers to The Game of Twenty Questions, and to take notes for later !", "section": "Legend of the Five Rings Core Rulebook, Chapter 2 : Creating a character, p. 41-95" diff --git a/system/lang/es-es.json b/system/lang/es-es.json index 785dd3a..5d2b01e 100644 --- a/system/lang/es-es.json +++ b/system/lang/es-es.json @@ -311,6 +311,7 @@ "choose_one_ring": "Pick one", "choose_one_skill": "Pick one", "or": "OR", + "and": "AND", "part0": { "intro": "You can use this sheet to fill in your answers to The Game of Twenty Questions, and to take notes for later !", "section": "Legend of the Five Rings Core Rulebook, Chapter 2 : Creating a character, p. 41-95" diff --git a/system/lang/fr-fr.json b/system/lang/fr-fr.json index 79f3590..8befc6b 100644 --- a/system/lang/fr-fr.json +++ b/system/lang/fr-fr.json @@ -311,6 +311,7 @@ "choose_one_ring": "En choisir un", "choose_one_skill": "En choisir une", "or": "OU", + "and": "ET", "part0": { "intro": "Renseignez vos réponses au jeu des vingt questions sur ce formulaire et notez-y des éléments à utiliser ultérieurement !", "section": "Livre de Règles de La Légende des Cinq Anneaux, Chapitre 2 : Création de personnage, p. 41-95" diff --git a/system/scripts/actors/twenty-questions-dialog.js b/system/scripts/actors/twenty-questions-dialog.js index 3e943b4..fbd093f 100644 --- a/system/scripts/actors/twenty-questions-dialog.js +++ b/system/scripts/actors/twenty-questions-dialog.js @@ -312,8 +312,10 @@ export class TwentyQuestionsDialog extends FormApplication { // Check "Or" conditions formData["step7.social_add_glory"] = formData["step7.skill"] === "none" ? 5 : 0; formData["step8.social_add_honor"] = formData["step8.skill"] === "none" ? 10 : 0; - if (formData["step13.skill"] !== "none" && this.object.data.step13.advantage.length > 0) { + + if (this.object.data.step13.advantage.length > 0) { formData["step13.skill"] = "none"; + setProperty(this.object.data, "step13.disadvantage", []); } // Update 20Q object data diff --git a/system/scripts/help/help-dialog.js b/system/scripts/help/help-dialog.js index 52467bd..10acd9f 100644 --- a/system/scripts/help/help-dialog.js +++ b/system/scripts/help/help-dialog.js @@ -45,13 +45,12 @@ export class HelpDialog extends FormApplication { super.activateListeners(html); // Buttons - ["edge", "drivethrurpg", "discord"].forEach((name) => { - html.find(`button[name='${name}']`).on("click", (event) => { - event.preventDefault(); - event.stopPropagation(); - ui.notifications.info(game.i18n.localize(`l5r5e.logo.${name}-info`)); - window.open(game.i18n.localize(`l5r5e.logo.${name}-link`), "_blank"); - }); + html.find(`button`).on("click", (event) => { + event.preventDefault(); + event.stopPropagation(); + const name = $(event.currentTarget).data("type"); + ui.notifications.info(game.i18n.localize(`l5r5e.logo.${name}-info`)); + window.open(game.i18n.localize(`l5r5e.logo.${name}-link`), "_blank"); }); } diff --git a/system/templates/actors/twenty-questions-dialog.html b/system/templates/actors/twenty-questions-dialog.html index 5c8443b..ef413e9 100644 --- a/system/templates/actors/twenty-questions-dialog.html +++ b/system/templates/actors/twenty-questions-dialog.html @@ -422,9 +422,14 @@
+ {{localize 'l5r5e.twenty_questions.part4.disadvantage'}} + {{#ifCond data.step13.advantage.length '==' 0}} + {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step13.disadvantage stepName='step13.disadvantage' itemType='peculiarities' hideDndAt=1 }} + {{/ifCond}} + {{localize 'l5r5e.twenty_questions.and'}}
{{localize 'l5r5e.twenty_questions.part4.advantage'}} - {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step13.advantage stepName='step13.advantage' itemType='peculiarities' hideDndAt=1 }} + {{#ifCond (ifCond data.step13.disadvantage.length '==' 0) '&&' (ifCond data.step13.skill '==' 'none')}} + {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step13.advantage stepName='step13.advantage' itemType='peculiarities' hideDndAt=1 }} + {{/ifCond}}
- {{localize 'l5r5e.twenty_questions.part4.disadvantage'}} - {{> 'systems/l5r5e/templates/actors/character/twenty-questions-item.html' itemsList=cache.step13.disadvantage stepName='step13.disadvantage' itemType='peculiarities' hideDndAt=1 }}

diff --git a/system/templates/help/help-dialog.html b/system/templates/help/help-dialog.html index e003650..1d042af 100644 --- a/system/templates/help/help-dialog.html +++ b/system/templates/help/help-dialog.html @@ -1,10 +1,10 @@

{{localize 'l5r5e.logo.content'}}

- + - + - +