forked from public/foundryvtt-reve-de-dragon
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user