Foundry v10 version

This commit is contained in:
2022-07-01 16:30:21 +02:00
parent 996ac1c88d
commit 05f044bc7c
18 changed files with 78 additions and 60 deletions

View File

@ -11,14 +11,29 @@ export class BoLActor extends Actor {
prepareData() {
if (this.type === 'character') {
this.chartype = 'player';
this.villainy = false;
this.chartype = 'player'
this.villainy = false
}
if (this.type === 'encounter') {
this.chartype = 'tough';
this.villainy = true;
this.chartype = 'tough'
this.villainy = true
}
super.prepareData();
super.prepareData()
}
/* -------------------------------------------- */
getCharType() {
if (this.type === 'character') {
return 'player'
}
return 'tough'
}
/* -------------------------------------------- */
getVillainy() {
if (this.type === 'character') {
return false
}
return true
}
/* -------------------------------------------- */