This commit is contained in:
2025-06-09 21:52:22 +02:00
parent 436c867dd5
commit 84a2ef8aeb
7 changed files with 49 additions and 5 deletions

4
build.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cd ..
zip pokemon-foundry/system.zip -r pokemon-foundry/

View File

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

8
pokemon.js Normal file
View File

@ -0,0 +1,8 @@
import PokemonItemSheet from "./modules/sheets/PokemonItemSheet";
Hooks.once("init", function() {
console.log("pokemon | Initializing the Pokémon system");
Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("pokemon", PokemonItemSheet, { makeDefault: true });
});

View File

@ -1,8 +1,12 @@
{
"version": "0.0.3",
"version": "0.0.4",
"id": "pokemon",
"title": "Pokémon TTRPG",
"description": "A Pokémon TTRPG",
"compatibility": {
"minimum": 13,
"verified": "13.344"
},
"authors": [
{
"name":"Alex Richter"
@ -12,13 +16,14 @@
}
],
"scripts": [],
"esmodules": [],
"esmodules": [
"pokemon.js"
],
"styles": [],
"packs": [],
"dependencies": [],
"languages": [],
"socket": false,
"url": "https://git.ingemanngade.net/NikolajDanger/pokemon-foundry/raw/branch/main/",
"manifest": "https://git.ingemanngade.net/NikolajDanger/pokemon-foundry/raw/branch/main/system.json",
"download": "https://git.ingemanngade.net/NikolajDanger/pokemon-foundry/archive/0.0.3.zip"
"download": "https://git.ingemanngade.net/NikolajDanger/pokemon-foundry/raw/branch/main/system.zip"
}

BIN
system.zip Normal file

Binary file not shown.

View File

@ -1 +1,16 @@
{}
{
"Actor": {},
"Item": {
"types": ["item"],
"templates": {
"base": {
"description": ""
}
},
"item": {
"templates": ["base"],
"quantity": 1,
"weight": 0
}
}
}

View File

@ -0,0 +1,7 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img src="{{item.img}}" data-edit="img" title="{{item.name}}" height="64" width="64"/>
<h1><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
</header>
<p>HELLO TEST</p>
</form>