add title on dice button and translations for chat successes/strives...
This commit is contained in:
@@ -47,6 +47,14 @@
|
|||||||
"passions": "Passions",
|
"passions": "Passions",
|
||||||
"passionstip": "After performing a check related to your passion, remove 3 strife.",
|
"passionstip": "After performing a check related to your passion, remove 3 strife.",
|
||||||
"personality": "Personality",
|
"personality": "Personality",
|
||||||
|
"chatdices": {
|
||||||
|
"successes": "Successes",
|
||||||
|
"explosives": "Explosives",
|
||||||
|
"opportunities": "Opportunities",
|
||||||
|
"strives": "Strives",
|
||||||
|
"difficulty": "Difficulty",
|
||||||
|
"dicepicker": "Dice Picker"
|
||||||
|
},
|
||||||
"max": "Max",
|
"max": "Max",
|
||||||
"current": "Current",
|
"current": "Current",
|
||||||
"quantity": "Quantity",
|
"quantity": "Quantity",
|
||||||
|
|||||||
@@ -47,6 +47,14 @@
|
|||||||
"passions": "Pasiones",
|
"passions": "Pasiones",
|
||||||
"passionstip": "Después de efectuar una tirada relacionada con tu pasión, descarta tres puntos de Conflicto.",
|
"passionstip": "Después de efectuar una tirada relacionada con tu pasión, descarta tres puntos de Conflicto.",
|
||||||
"personality": "Personalidad",
|
"personality": "Personalidad",
|
||||||
|
"chatdices": {
|
||||||
|
"successes": "Successes",
|
||||||
|
"explosives": "Explosives",
|
||||||
|
"opportunities": "Opportunities",
|
||||||
|
"strives": "Strives",
|
||||||
|
"difficulty": "Difficulty",
|
||||||
|
"dicepicker": "Dice Picker"
|
||||||
|
},
|
||||||
"max": "Max",
|
"max": "Max",
|
||||||
"current": "Actuales",
|
"current": "Actuales",
|
||||||
"quantity": "Cantidad",
|
"quantity": "Cantidad",
|
||||||
|
|||||||
@@ -39,14 +39,22 @@
|
|||||||
"schoolRank": "Rang",
|
"schoolRank": "Rang",
|
||||||
"roles": "Rôles",
|
"roles": "Rôles",
|
||||||
"distinctions": "Aptitudes",
|
"distinctions": "Aptitudes",
|
||||||
"distinctionsTip": "Lorsque vous effectuez un test auquel s'applique une aptitude, vous pouvez relancer jusqu'à 2 dés.",
|
"distinctionstip": "Lorsque vous effectuez un test auquel s'applique une aptitude, vous pouvez relancer jusqu'à 2 dés.",
|
||||||
"adversities": "Coups du sort",
|
"adversities": "Coups du sort",
|
||||||
"adversitiesTip": " lorsque vous effectuez un test auquel s'applique un coup du sort, vous relancez jusqu'à 2 dés dont le résultat contient Succès ou Succès explosif. Vous regagnez 1 point de Vide si vous ratez ce test.",
|
"adversitiestip": " lorsque vous effectuez un test auquel s'applique un coup du sort, vous relancez jusqu'à 2 dés dont le résultat contient Succès ou Succès explosif. Vous regagnez 1 point de Vide si vous ratez ce test.",
|
||||||
"anxieties": "Défaillances",
|
"anxieties": "Défaillances",
|
||||||
"anxietiesTip": "Lorsque vous effectuez un test auquel s'applique une défaillance, vous recevez 2 points de Conflit. S'il s'agit de la première fois dans la scène, vous regagnez 1 point de Vide.",
|
"anxietiestip": "Lorsque vous effectuez un test auquel s'applique une défaillance, vous recevez 2 points de Conflit. S'il s'agit de la première fois dans la scène, vous regagnez 1 point de Vide.",
|
||||||
"passions": "Passions",
|
"passions": "Passions",
|
||||||
"passionsTip": "Lorsque vous effectuez un test auquel s'applique une passion, éliminez 3 points de Conflit.",
|
"passionstip": "Lorsque vous effectuez un test auquel s'applique une passion, éliminez 3 points de Conflit.",
|
||||||
"personality": "Personalité",
|
"personality": "Personnalité",
|
||||||
|
"chatdices": {
|
||||||
|
"successes": "Succès",
|
||||||
|
"explosives": "Explosifs",
|
||||||
|
"opportunities": "Opportunités",
|
||||||
|
"strives": "Conflicts",
|
||||||
|
"difficulty": "Difficulté",
|
||||||
|
"dicepicker": "Dice Picker"
|
||||||
|
},
|
||||||
"max": "Max",
|
"max": "Max",
|
||||||
"current": "Actuel",
|
"current": "Actuel",
|
||||||
"quantity": "Quantité",
|
"quantity": "Quantité",
|
||||||
|
|||||||
@@ -108,6 +108,8 @@ Hooks.once("setup", function () {
|
|||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
Hooks.once("ready", function () {
|
Hooks.once("ready", function () {
|
||||||
// Do anything once the system is ready
|
// Do anything once the system is ready
|
||||||
|
// Add title on button dice icon
|
||||||
|
$.find(".chat-control-icon")[0].title = game.i18n.localize("l5r5e.chatdices.dicepicker");
|
||||||
});
|
});
|
||||||
|
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
@@ -115,7 +117,7 @@ Hooks.once("ready", function () {
|
|||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
Hooks.on("renderSidebarTab", (app, html, data) => {
|
Hooks.on("renderSidebarTab", (app, html, data) => {
|
||||||
// Add button on dice icon
|
// Add button on dice icon
|
||||||
html.find(".chat-control-icon").click(async (event) => {
|
html.find(".chat-control-icon").click(async () => {
|
||||||
new game.l5r5e.DicePickerDialog().render();
|
new game.l5r5e.DicePickerDialog().render();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -25,18 +25,22 @@
|
|||||||
|
|
||||||
{{#l5r5e.summary}}
|
{{#l5r5e.summary}}
|
||||||
<ul>
|
<ul>
|
||||||
<li>Successes: {{this.success}}</li>
|
<li>{{localize "l5r5e.chatdices.successes"}}: {{this.success}}</li>
|
||||||
|
|
||||||
|
{{#if explosive}}
|
||||||
|
<li>{{localize "l5r5e.chatdices.explosives"}}: {{this.explosive}}</li>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if opportunity}}
|
{{#if opportunity}}
|
||||||
<li>Opportunities: {{this.opportunity}}</li>
|
<li>{{localize "l5r5e.chatdices.opportunities"}}: {{this.opportunity}}</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if strife}}
|
{{#if strife}}
|
||||||
<li>Strife: {{this.strife}}</li>
|
<li>{{localize "l5r5e.chatdices.strives"}}: {{this.strife}}</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if difficulty}}
|
{{#if difficulty}}
|
||||||
<li>Difficulty: {{this.difficulty}}</li>
|
<li>{{localize "l5r5e.chatdices.difficulty"}}: {{this.difficulty}}</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
{{/l5r5e.summary}}
|
{{/l5r5e.summary}}
|
||||||
|
|||||||
@@ -21,23 +21,26 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
<!-- TODO summary localization -->
|
|
||||||
{{#if chatData.l5r5e.dicesTypes.l5r}}
|
{{#if chatData.l5r5e.dicesTypes.l5r}}
|
||||||
{{#if chatData.displaySummary}}
|
{{#if chatData.displaySummary}}
|
||||||
{{#chatData.l5r5e.summary}}
|
{{#chatData.l5r5e.summary}}
|
||||||
<ul>
|
<ul>
|
||||||
<li>Successes: {{this.success}}</li>
|
<li>{{localize "l5r5e.chatdices.successes"}}: {{this.success}}</li>
|
||||||
|
|
||||||
|
{{#if explosive}}
|
||||||
|
<li>{{localize "l5r5e.chatdices.explosives"}}: {{this.explosive}}</li>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if opportunity}}
|
{{#if opportunity}}
|
||||||
<li>Opportunities: {{this.opportunity}}</li>
|
<li>{{localize "l5r5e.chatdices.opportunities"}}: {{this.opportunity}}</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if strife}}
|
{{#if strife}}
|
||||||
<li>Strife: {{this.strife}}</li>
|
<li>{{localize "l5r5e.chatdices.strives"}}: {{this.strife}}</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if difficulty}}
|
{{#if difficulty}}
|
||||||
<li>Difficulty: {{this.difficulty}}</li>
|
<li>{{localize "l5r5e.chatdices.difficulty"}}: {{this.difficulty}}</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
{{/chatData.l5r5e.summary}}
|
{{/chatData.l5r5e.summary}}
|
||||||
|
|||||||
Reference in New Issue
Block a user