forked from public/foundryvtt-reve-de-dragon
Compare commits
4 Commits
d532086de5
...
12.0.43
Author | SHA1 | Date | |
---|---|---|---|
921e470498 | |||
0009876a6d | |||
54785f0c3a | |||
df76c4bd78 |
@ -557,7 +557,10 @@ export class RdDActor extends RdDBaseActorSang {
|
||||
return;
|
||||
}
|
||||
fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue));
|
||||
await this.update({ "system.sante.fatigue.value": fatigue });
|
||||
setTimeout( // On attend un peu pour que le message de récupération de r
|
||||
async () => {
|
||||
await this.update({ 'system.sante.fatigue.value': fatigue });
|
||||
}, 200);
|
||||
if (fatigue == 0) {
|
||||
message.content += "Vous êtes complêtement reposé. ";
|
||||
}
|
||||
@ -1800,8 +1803,10 @@ export class RdDActor extends RdDBaseActorSang {
|
||||
};
|
||||
RollDataAjustements.calcul(rollData, this);
|
||||
await RdDResolutionTable.rollData(rollData);
|
||||
this.gererExperience(rollData);
|
||||
await RdDRollResult.displayRollData(rollData, this)
|
||||
|
||||
this.gererExperience(rollData);
|
||||
|
||||
return rollData.rolled;
|
||||
}
|
||||
|
||||
|
@ -747,7 +747,7 @@ export class RdDBaseActor extends Actor {
|
||||
async jetDeMoral() { this.actionImpossible("jet de moral") }
|
||||
|
||||
async resetItemUse() { }
|
||||
async incDecItemUse(itemId, inc = 1) { }
|
||||
async incDecItemUse(itemId, shouldIncrease = true) { }
|
||||
getItemUse(itemId) { return 0; }
|
||||
|
||||
async finDeRound(options = { terminer: false }) { }
|
||||
|
@ -265,7 +265,7 @@ export class Misc {
|
||||
const subset = elements.filter(options.preFilter)
|
||||
.filter(it => Grammar.toLowerCaseNoAccent(options.mapper(it))?.includes(value))
|
||||
.sort(Misc.ascending(it => options.mapper(it)))
|
||||
if (subset.length == 0) {
|
||||
if (subset.length == 0 && options?.onMessage) {
|
||||
options.onMessage(`Pas de ${options.description} correspondant à ${value}`);
|
||||
}
|
||||
return subset;
|
||||
|
Reference in New Issue
Block a user