fix on 20q
This commit is contained in:
@@ -273,7 +273,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"twenty_questions": {
|
"twenty_questions": {
|
||||||
"title": "Vingt questions",
|
"title": "Le jeu des Vingt questions",
|
||||||
"bt_abrev": "20Q",
|
"bt_abrev": "20Q",
|
||||||
"bt_refresh": "Actualiser",
|
"bt_refresh": "Actualiser",
|
||||||
"intro": "Renseignez vos réponses au jeu des vingt questions sur ce formulaire et notez-y des éléments à utiliser ultérieurement !",
|
"intro": "Renseignez vos réponses au jeu des vingt questions sur ce formulaire et notez-y des éléments à utiliser ultérieurement !",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export class TwentyQuestionsDialog extends FormApplication {
|
|||||||
title: game.i18n.localize("l5r5e.twenty_questions.title"),
|
title: game.i18n.localize("l5r5e.twenty_questions.title"),
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 800,
|
height: 800,
|
||||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "part1" }],
|
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "part0" }],
|
||||||
resizable: true,
|
resizable: true,
|
||||||
closeOnSubmit: false,
|
closeOnSubmit: false,
|
||||||
submitOnClose: false,
|
submitOnClose: false,
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ export class TwentyQuestions {
|
|||||||
"step12.anxiety",
|
"step12.anxiety",
|
||||||
"step13.advantage",
|
"step13.advantage",
|
||||||
"step13.disadvantage",
|
"step13.disadvantage",
|
||||||
|
"step14.special_features",
|
||||||
"step16.item",
|
"step16.item",
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -97,12 +98,12 @@ export class TwentyQuestions {
|
|||||||
step7: {
|
step7: {
|
||||||
clan_relations: "",
|
clan_relations: "",
|
||||||
skill: "",
|
skill: "",
|
||||||
social_add_glory: 0,
|
social_add_glory: 5,
|
||||||
},
|
},
|
||||||
step8: {
|
step8: {
|
||||||
bushido: "",
|
bushido: "",
|
||||||
skill: "",
|
skill: "",
|
||||||
social_add_honor: 0,
|
social_add_honor: 10,
|
||||||
},
|
},
|
||||||
step9: {
|
step9: {
|
||||||
success: "",
|
success: "",
|
||||||
@@ -128,7 +129,7 @@ export class TwentyQuestions {
|
|||||||
},
|
},
|
||||||
step14: {
|
step14: {
|
||||||
first_sight: "",
|
first_sight: "",
|
||||||
special_features: "",
|
special_features: [],
|
||||||
},
|
},
|
||||||
step15: {
|
step15: {
|
||||||
stress: "",
|
stress: "",
|
||||||
@@ -187,9 +188,7 @@ export class TwentyQuestions {
|
|||||||
|
|
||||||
// If not fill some values
|
// If not fill some values
|
||||||
this.data.step1.clan = actorDatas.identity.clan;
|
this.data.step1.clan = actorDatas.identity.clan;
|
||||||
this.data.step1.social_status = actorDatas.social.status;
|
|
||||||
this.data.step2.family = actorDatas.identity.family;
|
this.data.step2.family = actorDatas.identity.family;
|
||||||
this.data.step2.social_glory = actorDatas.social.glory;
|
|
||||||
this.data.step3.school = actorDatas.identity.school;
|
this.data.step3.school = actorDatas.identity.school;
|
||||||
this.data.step3.roles = actorDatas.identity.roles;
|
this.data.step3.roles = actorDatas.identity.roles;
|
||||||
this.data.step3.allowed_techniques.kata = actorDatas.techniques.kata;
|
this.data.step3.allowed_techniques.kata = actorDatas.techniques.kata;
|
||||||
@@ -199,7 +198,6 @@ export class TwentyQuestions {
|
|||||||
this.data.step3.allowed_techniques.shuji = actorDatas.techniques.shuji;
|
this.data.step3.allowed_techniques.shuji = actorDatas.techniques.shuji;
|
||||||
this.data.step3.allowed_techniques.maho = actorDatas.techniques.maho;
|
this.data.step3.allowed_techniques.maho = actorDatas.techniques.maho;
|
||||||
this.data.step3.allowed_techniques.ninjutsu = actorDatas.techniques.ninjutsu;
|
this.data.step3.allowed_techniques.ninjutsu = actorDatas.techniques.ninjutsu;
|
||||||
this.data.step3.social_honor = actorDatas.social.honor;
|
|
||||||
this.data.step5.social_giri = actorDatas.social.giri;
|
this.data.step5.social_giri = actorDatas.social.giri;
|
||||||
this.data.step6.social_ninjo = actorDatas.social.ninjo;
|
this.data.step6.social_ninjo = actorDatas.social.ninjo;
|
||||||
this.data.step19.firstname = actor.data.name.replace(/^(?:\w+\s+)?(.+)$/gi, "$1") || "";
|
this.data.step19.firstname = actor.data.name.replace(/^(?:\w+\s+)?(.+)$/gi, "$1") || "";
|
||||||
|
|||||||
@@ -4,15 +4,9 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1>{{localize 'l5r5e.twenty_questions.title'}}</h1>
|
|
||||||
<div>
|
|
||||||
{{localize 'l5r5e.twenty_questions.intro'}}
|
|
||||||
<br>
|
|
||||||
<br><i> {{localize 'l5r5e.twenty_questions.section'}}</i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
<nav class="sheet-tabs tabs" data-group="primary">
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item" data-tab="part0">?</a>
|
||||||
<a class="item" data-tab="part1">I</a>
|
<a class="item" data-tab="part1">I</a>
|
||||||
<a class="item" data-tab="part2">II</a>
|
<a class="item" data-tab="part2">II</a>
|
||||||
<a class="item" data-tab="part3">III</a>
|
<a class="item" data-tab="part3">III</a>
|
||||||
@@ -21,6 +15,14 @@
|
|||||||
<a class="item" data-tab="part6">VI</a>
|
<a class="item" data-tab="part6">VI</a>
|
||||||
<a class="item" data-tab="part7">VII</a>
|
<a class="item" data-tab="part7">VII</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
<article class="tab parts part0" data-group="primary" data-tab="part0">
|
||||||
|
<h1>{{localize 'l5r5e.twenty_questions.title'}}</h1>
|
||||||
|
<div>
|
||||||
|
{{localize 'l5r5e.twenty_questions.intro'}}
|
||||||
|
<br>
|
||||||
|
<br><i> {{localize 'l5r5e.twenty_questions.section'}}</i>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
<article class="tab parts part1" data-group="primary" data-tab="part1">
|
<article class="tab parts part1" data-group="primary" data-tab="part1">
|
||||||
<h2>{{localize 'l5r5e.twenty_questions.part1.title'}}</h2>
|
<h2>{{localize 'l5r5e.twenty_questions.part1.title'}}</h2>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user