#52 Travaux en progres....
This commit is contained in:
parent
808cd7296d
commit
e07120aa23
@ -29,7 +29,7 @@ export class RdDAstrologieJoueur extends Dialog {
|
||||
constructor(html, actor, data ) {
|
||||
|
||||
let myButtons = {
|
||||
saveButton: { label: "Fermer", callback: html => this.fillData() }
|
||||
saveButton: { label: "Fermer", callback: html => this.quitDialog() }
|
||||
};
|
||||
|
||||
// Get all n
|
||||
@ -61,7 +61,7 @@ export class RdDAstrologieJoueur extends Dialog {
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
fillData() {
|
||||
quitDialog() {
|
||||
|
||||
}
|
||||
|
||||
@ -69,9 +69,9 @@ export class RdDAstrologieJoueur extends Dialog {
|
||||
activateListeners(html) {
|
||||
super.activateListeners(html);
|
||||
|
||||
$(function () {
|
||||
html.find('#jet-astrologie').click((event) => {
|
||||
this.requestJetAstrologie();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -245,6 +245,10 @@ export class RdDCalendrier extends Application {
|
||||
nbAstralFaux = new Roll("1d12").roll().total;
|
||||
}
|
||||
nbAstral = nbAstralFaux;
|
||||
// Mise à jour des nombres astraux du joueur
|
||||
let astralData = this.listeNombreAstral.find( (nombreAstral, i) => nombreAstral.index == request.date );
|
||||
astralData.valeursFausses.push( {actorId: request.id, nombreAstral: nbAstralFaux});
|
||||
game.settings.set("foundryvtt-reve-de-dragon", "liste-nombre-astral", this.listeNombreAstral );
|
||||
}
|
||||
request.nbAstral = nbAstral;
|
||||
if ( game.user.isGM) {
|
||||
|
@ -17,7 +17,12 @@
|
||||
</tr>
|
||||
<tr>
|
||||
{{#each astrologieData as |nombreData key|}}
|
||||
<td align="center">{{nombreData.nombreAstral}}</td>
|
||||
<td align="center">
|
||||
{{nombreData.nombreAstral}}
|
||||
{{#each nombreData.valeursFausses as |fausseVal key|}}
|
||||
<li>{{fausseVal.actorId}} - {{fausseVal.nombreAstral}}</li>
|
||||
{{/each}}
|
||||
</td>
|
||||
{{/each}}
|
||||
</tr>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user