Merge branch 'v1.4-fix-sort-reve' into 'v1.4'
Fix: forcer Rêve pour lancer un sort See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!266
This commit is contained in:
commit
3a8a8fa5fb
@ -2152,7 +2152,12 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
computeDraconicAndSortIndex(sortList) {
|
computeDraconicAndSortIndex(sortList) {
|
||||||
let draconicList = this.getDraconicList().map(d => duplicate(Misc.data(d)));
|
let draconicList = this.getDraconicList()
|
||||||
|
.map(it => {
|
||||||
|
it = duplicate(Misc.data(it))
|
||||||
|
it.data.defaut_carac = "reve";
|
||||||
|
return it;
|
||||||
|
});
|
||||||
for (let sort of sortList) {
|
for (let sort of sortList) {
|
||||||
let draconicsSort = this.getDraconicsSort(draconicList, sort).map(it => it.name);
|
let draconicsSort = this.getDraconicsSort(draconicList, sort).map(it => it.name);
|
||||||
for (let index = 0; index < draconicList.length && sort.data.listIndex == undefined; index++) {
|
for (let index = 0; index < draconicList.length && sort.data.listIndex == undefined; index++) {
|
||||||
@ -2203,8 +2208,8 @@ export class RdDActor extends Actor {
|
|||||||
forceCarac: { 'reve': reve },
|
forceCarac: { 'reve': reve },
|
||||||
selectedCarac: reve,
|
selectedCarac: reve,
|
||||||
draconicList: draconicList,
|
draconicList: draconicList,
|
||||||
sortList: sortList,
|
|
||||||
competence: draconicList[0],
|
competence: draconicList[0],
|
||||||
|
sortList: sortList,
|
||||||
selectedSort: sortList[0],
|
selectedSort: sortList[0],
|
||||||
tmr: TMRUtility.getTMR(coord),
|
tmr: TMRUtility.getTMR(coord),
|
||||||
diffLibre: RdDItemSort.getDifficulte(sortList[0], -7), // Per default at startup
|
diffLibre: RdDItemSort.getDifficulte(sortList[0], -7), // Per default at startup
|
||||||
|
Loading…
Reference in New Issue
Block a user