#Fix 149
This commit is contained in:
parent
60856df818
commit
11270eb450
@ -199,7 +199,7 @@ export class PegasusActorCreate {
|
|||||||
this.rolePerks.push(perk)
|
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--;
|
this.nbPerks--;
|
||||||
if (this.nbPerks == 0 || this.rolePerks.length == 0) {
|
if (this.nbPerks == 0 || this.rolePerks.length == 0) {
|
||||||
this.nbGlobalSpec = 5
|
this.nbGlobalSpec = 5
|
||||||
@ -447,6 +447,7 @@ export class PegasusActorCreate {
|
|||||||
}
|
}
|
||||||
let formData = this.createFormData("select-race-perks")
|
let formData = this.createFormData("select-race-perks")
|
||||||
formData.raceperks = this.racePerks;
|
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;
|
formData.nbraceperks = this.nbRacePerks;
|
||||||
this.renderChatMessage(formData)
|
this.renderChatMessage(formData)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user