Ajout d'informations pour armes à distance

* prise en compte de la taille de la cible
* prise en compte de l'activité
* valeur indicative
This commit is contained in:
Vincent Vandemeulebrouck
2022-10-07 23:28:41 +02:00
parent 4f8406360f
commit 3e17dd9b7e
4 changed files with 82 additions and 21 deletions

View File

@ -139,9 +139,9 @@ export class RdDActor extends Actor {
// Make separate methods for each Actor type (character, npc, etc.) to keep
// things organized.
if (this.type === 'personnage') this._prepareCharacterData(this)
if (this.type === 'creature') this._prepareCreatureData(this)
if (this.type === 'vehicule') this._prepareVehiculeData(this)
if (this.isPersonnage()) this._prepareCharacterData(this)
if (this.isCreature()) this._prepareCreatureData(this)
if (this.isVehicule()) this._prepareVehiculeData(this)
}
/* -------------------------------------------- */
@ -196,6 +196,9 @@ export class RdDActor extends Actor {
isPersonnage() {
return this.type == 'personnage';
}
isVehicule() {
return this.type == 'vehicule';
}
/* -------------------------------------------- */
isHautRevant() {
return this.isPersonnage() && this.system.attributs.hautrevant.value != ""
@ -4107,7 +4110,7 @@ export class RdDActor extends Actor {
/* -------------------------------------------- */
async setEffect(statusId, status) {
if (this.isEntite() || this.type == 'vehicule') {
if (this.isEntite() || this.isVehicule()) {
return;
}
console.log("setEffect", statusId, status)