Skip to content

Commit

Permalink
Fix for v10
Browse files Browse the repository at this point in the history
  • Loading branch information
algnc committed Nov 7, 2022
1 parent 6aca5e6 commit 1b6f11a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/actor-sheets-mutant.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class ActorSheetMutant extends DCCActorSheet {
/** @override */
/** getData () {
const data = super.getData() **/
async getData (options) {
const data = await super.getData(options)
this.options.template = 'modules/mcc-classes/templates/actor-sheet-mutant.html'
if (data.system.details.sheetClass !== 'Mutant') {
this.actor.update({
Expand Down
2 changes: 2 additions & 0 deletions module/actor-sheets-plantient.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class ActorSheetPlantient extends DCCActorSheet {
/** @override */
/** getData () {
const data = super.getData() **/
async getData (options) {
const data = await super.getData(options)
this.options.template = 'modules/mcc-classes/templates/actor-sheet-plantient.html'
if (data.system.details.sheetClass !== 'Plantient') {
this.actor.update({
Expand Down
2 changes: 2 additions & 0 deletions module/actor-sheets-rover.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class ActorSheetRover extends DCCActorSheet {
/** @override */
/** getData () {
const data = super.getData() **/
async getData (options) {
const data = await super.getData(options)
this.options.template = 'modules/mcc-classes/templates/actor-sheet-rover.html'
if (data.system.details.sheetClass !== 'Rover') {
this.actor.update({
Expand Down
2 changes: 2 additions & 0 deletions module/actor-sheets-sentinel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class ActorSheetSentinel extends DCCActorSheet {
/** @override */
/** getData () {
const data = super.getData() **/
async getData (options) {
const data = await super.getData(options)
this.options.template = 'modules/mcc-classes/templates/actor-sheet-sentinel.html'
if (data.system.details.sheetClass !== 'Sentinel') {
this.actor.update({
Expand Down
2 changes: 2 additions & 0 deletions module/actor-sheets-shaman.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class ActorSheetShaman extends DCCActorSheet {
/** @override */
/** getData () {
const data = super.getData() **/
async getData (options) {
const data = await super.getData(options)
this.options.template = 'modules/mcc-classes/templates/actor-sheet-shaman.html'
if (data.system.details.sheetClass !== 'Shaman') {
this.actor.update({
Expand Down

0 comments on commit 1b6f11a

Please sign in to comment.