This commit is contained in:
2025-06-09 22:08:44 +02:00
parent 5686252e3b
commit 48eb799861
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
export default class PokemonItemSheet extends ItemSheet { export default class PokemonItemSheet extends foundry.appv1.sheets.ItemSheet {
get template() { get template() {
return `systems/pokemon/templates/sheets/${this.item.type}-sheet.html` return `systems/pokemon/templates/sheets/${this.item.type}-sheet.html`
} }

View File

@ -3,6 +3,6 @@ import PokemonItemSheet from "./modules/sheets/PokemonItemSheet.js";
Hooks.once("init", function() { Hooks.once("init", function() {
console.log("pokemon | Initializing the Pokémon system"); console.log("pokemon | Initializing the Pokémon system");
Items.unregisterSheet("core", ItemSheet); foundry.documents.collections.Items.unregisterSheet("core", foundry.appv1.sheets.ItemSheet);
Items.registerSheet("pokemon", PokemonItemSheet, { makeDefault: true }); foundry.documents.collections.Items.registerSheet("pokemon", PokemonItemSheet, { makeDefault: true });
}); });

View File

@ -1,5 +1,5 @@
{ {
"version": "0.0.6", "version": "0.0.7",
"id": "pokemon", "id": "pokemon",
"title": "Pokémon TTRPG", "title": "Pokémon TTRPG",
"description": "A Pokémon TTRPG", "description": "A Pokémon TTRPG",

Binary file not shown.