This commit is contained in:
sladecraven 2022-11-27 16:12:44 +01:00
parent 60856df818
commit 11270eb450

View File

@ -199,7 +199,7 @@ export class PegasusActorCreate {
this.rolePerks.push(perk)
}
}
this.rolePerks.sort(function (a, b) { if (a.name < b.name) { return -1 } else { return 1 } })
this.rolePerks.sort(function compare(a, b) { if (a.name < b.name) { return -1 } else { return 1 } })
this.nbPerks--;
if (this.nbPerks == 0 || this.rolePerks.length == 0) {
this.nbGlobalSpec = 5
@ -447,6 +447,7 @@ export class PegasusActorCreate {
}
let formData = this.createFormData("select-race-perks")
formData.raceperks = this.racePerks;
formData.raceperks.sort( function compare(a, b) { if (a.name<b.name){ return -1}else{return 1}} )
formData.nbraceperks = this.nbRacePerks;
this.renderChatMessage(formData)
}