Foundry v10 version
This commit is contained in:
@ -139,6 +139,8 @@ export class BoLActorSheet extends ActorSheet {
|
||||
formData.owner = this.document.isOwner
|
||||
formData.editScore = this.options.editScore
|
||||
formData.useBougette = BoLUtility.getUseBougette()
|
||||
formData.charType = this.actor.getCharType()
|
||||
formData.villainy = this.actor.getVillainy()
|
||||
|
||||
formData.isSorcerer = this.actor.isSorcerer()
|
||||
formData.isAlchemist = this.actor.isAlchemist()
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user