Do some renaming to be more clean
This commit is contained in:
parent
b8894916cd
commit
98eb389a13
2 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { filePath } from "../../consts.mjs";
|
||||
import { gameTerms } from "../../gameTerms.mjs";
|
||||
import { GenericSheetMixin } from "../GenericSheet.mjs";
|
||||
import { GenericAppMixin } from "../GenericApp.mjs";
|
||||
import { localizer } from "../../utils/Localizer.mjs";
|
||||
import { Logger } from "../../utils/Logger.mjs";
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ const { HandlebarsApplicationMixin } = foundry.applications.api;
|
|||
const { ActorSheetV2 } = foundry.applications.sheets;
|
||||
// const { Roll } = foundry.dice;
|
||||
|
||||
export class HeroSummaryCardV1 extends GenericSheetMixin(HandlebarsApplicationMixin(ActorSheetV2)) {
|
||||
export class HeroSummaryCardV1 extends GenericAppMixin(HandlebarsApplicationMixin(ActorSheetV2)) {
|
||||
|
||||
// #region Options
|
||||
static DEFAULT_OPTIONS = {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ const { Roll } = foundry.dice;
|
|||
/**
|
||||
* A mixin that takes the class from HandlebarsApplicationMixin and
|
||||
*/
|
||||
export function GenericSheetMixin(HandlebarsSheet) {
|
||||
class GenericRipCryptSheet extends HandlebarsSheet {
|
||||
export function GenericAppMixin(HandlebarsApp) {
|
||||
class GenericRipCryptApp extends HandlebarsApp {
|
||||
|
||||
// #region Options
|
||||
static DEFAULT_OPTIONS = {
|
||||
|
|
@ -39,7 +39,7 @@ export function GenericSheetMixin(HandlebarsSheet) {
|
|||
// #endregion
|
||||
|
||||
// #region Actions
|
||||
/** @this {GenericRipCryptSheet} */
|
||||
/** @this {GenericRipCryptApp} */
|
||||
static async rollDice(_$e, el) {
|
||||
const data = el.dataset;
|
||||
const formula = data.formula;
|
||||
|
|
@ -59,5 +59,5 @@ export function GenericSheetMixin(HandlebarsSheet) {
|
|||
};
|
||||
// #endregion
|
||||
};
|
||||
return GenericRipCryptSheet;
|
||||
return GenericRipCryptApp;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue