✨
This commit is contained in:
4
build.sh
Executable file
4
build.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ..
|
||||
zip pokemon-foundry/system.zip -r pokemon-foundry/
|
5
modules/sheets/PokemonItemSheet.js
Normal file
5
modules/sheets/PokemonItemSheet.js
Normal 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
8
pokemon.js
Normal 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 });
|
||||
});
|
13
system.json
13
system.json
@ -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
BIN
system.zip
Normal file
Binary file not shown.
@ -1 +1,16 @@
|
||||
{}
|
||||
{
|
||||
"Actor": {},
|
||||
"Item": {
|
||||
"types": ["item"],
|
||||
"templates": {
|
||||
"base": {
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"item": {
|
||||
"templates": ["base"],
|
||||
"quantity": 1,
|
||||
"weight": 0
|
||||
}
|
||||
}
|
||||
}
|
7
templates/sheets/item-sheet.html
Normal file
7
templates/sheets/item-sheet.html
Normal 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>
|
Reference in New Issue
Block a user