v10.2.5 #577
@ -104,7 +104,7 @@ class _10_0_33_MigrationNomsDraconic extends Migration {
|
|||||||
get version() { return "10.0.33"; }
|
get version() { return "10.0.33"; }
|
||||||
|
|
||||||
migrationNomDraconic(ancien) {
|
migrationNomDraconic(ancien) {
|
||||||
if (typeof ancien == 'string'){
|
if (typeof ancien == 'string') {
|
||||||
switch (ancien) {
|
switch (ancien) {
|
||||||
case 'oniros': case "Voie d'Oniros": return "Voie d'Oniros";
|
case 'oniros': case "Voie d'Oniros": return "Voie d'Oniros";
|
||||||
case 'hypnos': case "Voie d'Hypnos": return "Voie d'Hypnos";
|
case 'hypnos': case "Voie d'Hypnos": return "Voie d'Hypnos";
|
||||||
@ -122,8 +122,8 @@ class _10_0_33_MigrationNomsDraconic extends Migration {
|
|||||||
|
|
||||||
await this.applyItemsUpdates(items => items
|
await this.applyItemsUpdates(items => items
|
||||||
.filter(it => ["sort", "sortreserve"].includes(it.type)
|
.filter(it => ["sort", "sortreserve"].includes(it.type)
|
||||||
&& (typeof it.system.draconic == 'string') || (typeof it.system.draconic?.name == 'string'))
|
&& (typeof it.system.draconic == 'string') || (typeof it.system.draconic?.name == 'string'))
|
||||||
.map(it => { return { _id: it.id, "system.draconic": this.migrationNomDraconic(it.system.draconic)} }));
|
.map(it => { return { _id: it.id, "system.draconic": this.migrationNomDraconic(it.system.draconic) } }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ export class RdDCalendrier extends Application {
|
|||||||
this.listeNombreAstral = this.getListeNombreAstral();
|
this.listeNombreAstral = this.getListeNombreAstral();
|
||||||
this.rebuildListeNombreAstral(false); // Ensure always up-to-date
|
this.rebuildListeNombreAstral(false); // Ensure always up-to-date
|
||||||
}
|
}
|
||||||
console.log(this.calendrier, this.calendrierPos, this.listeNombreAstral);
|
console.log('RdDCalendrier.constructor()', this.calendrier, this.calendrierPos, this.listeNombreAstral);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -217,7 +217,6 @@ export class RdDCalendrier extends Application {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async rebuildListeNombreAstral(showDice = SHOW_DICE) {
|
async rebuildListeNombreAstral(showDice = SHOW_DICE) {
|
||||||
if (Misc.isUniqueConnectedGM()) {
|
if (Misc.isUniqueConnectedGM()) {
|
||||||
console.log("rebuildListeNombreAstral", showDice);
|
|
||||||
let jourCourant = this.getCurrentDayIndex();
|
let jourCourant = this.getCurrentDayIndex();
|
||||||
let newList = [];
|
let newList = [];
|
||||||
for (let i = 0; i < MAX_NOMBRE_ASTRAL; i++) {
|
for (let i = 0; i < MAX_NOMBRE_ASTRAL; i++) {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label>Tactique:</label>
|
<label>Tactique:</label>
|
||||||
<span class="tooltip tooltip-dotted">
|
<span class="tooltip tooltip-dotted">
|
||||||
<select class="select-by-name" name="tactique" id="tactique-combat" data-dtype="String" {{#unless use.conditions}}disabled{{/unless}}>
|
<select class="select-by-name" name="tactique" data-dtype="String" {{#unless use.conditions}}disabled{{/unless}}>
|
||||||
<option value="Attaque normale">Attaque normale</option>
|
<option value="Attaque normale">Attaque normale</option>
|
||||||
<option value="charge">Charge</option>
|
<option value="charge">Charge</option>
|
||||||
<option value="feinte">Feinte</option>
|
<option value="feinte">Feinte</option>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<form class="dialog-roll-sort">
|
<form class="dialog-roll-signedraconique">
|
||||||
<h2>Lire le signe draconique
|
<h2>Lire le signe draconique
|
||||||
<select name="signe-draconique" class="roll-signedraconique flex-grow" data-dtype="String">
|
<select name="signe-draconique" class="roll-signedraconique flex-grow" data-dtype="String">
|
||||||
{{#select signe}}
|
{{#select signe}}
|
||||||
|
Loading…
Reference in New Issue
Block a user