A => module/bearbones.js +11 -0
@@ 0,0 1,11 @@
+import { bearbones } from "./index.js";
+import HeroSheet from "./sheets/HeroSheet.js";
+
+Hooks.once("init", function () {
+ console.log('Bearbones | look ma no brains')
+
+ CONFIG.bearbones = bearbones;
+
+ Actors.unregisterSheet("core", ActorSheet);
+ Actors.registerSheet("bearbones", HeroSheet, {makeDefault: true});
+})
No newline at end of file
A => module/index.js +1 -0
@@ 0,0 1,1 @@
+export const bearbones = {};
No newline at end of file
A => module/sheets/HeroSheet.js +7 -0
@@ 0,0 1,7 @@
+export default class HeroSheet extends ActorSheet {
+ static get defaultOptions () {
+ return mergeObject(super.defaultOptions, {
+ template: `systems/bearbones/templates/sheets/hero-sheet.hbs`
+ })
+ }
+}
No newline at end of file
A => styles/style.css +0 -0
A => system.json +17 -0
@@ 0,0 1,17 @@
+{
+ "name": "bearbones",
+ "title": "Bearbones is Bearbones",
+ "description": "My Dog ate my Character Sheet",
+ "esmodules": [
+ "module/bearbones.js"
+ ],
+ "styles": [
+ "styles/style.css"
+ ],
+ "packs": [],
+ "languages": [],
+ "gridDistance": "5",
+ "gridUnits": "ft",
+ "primaryTokenAttribute": "health",
+ "initiative": "1d20"
+}
No newline at end of file
A => template.json +49 -0
@@ 0,0 1,49 @@
+{
+ "Actor": {
+ "types": ["pc", "npc", "enemy"],
+ "templates": {
+ "bio": {
+ "race": "Human",
+ "Class": "Fighter",
+ "Level": 1,
+ "alignment": "True Neutral",
+ "description": ""
+ },
+ "combat": {
+ "health": {
+ "min": 0,
+ "max": 10,
+ "value": 10
+ },
+ "death_saves_failed": {
+ "min": 0,
+ "value": 0,
+ "max": 3
+ },
+ "death_saves_saved": {
+ "min": 0,
+ "value": 0,
+ "max": 3
+ }
+ },
+ "stats": {
+ "link_to_dnd_beyond": ""
+ },
+ "stat_block": {
+ "block_image_file": ""
+ }
+ },
+ "pc": {
+ "templates": ["bio", "combat", "stats"]
+ },
+ "npc": {
+ "templates": ["combat", "stats_block"]
+ },
+ "enemy": {
+ "templates": ["combat", "stats_block"]
+ }
+ },
+ "Item": {
+
+ }
+}
No newline at end of file
A => templates/sheets/hero-sheet.hbs +13 -0
@@ 0,0 1,13 @@
+<form class="{{cssClass}}" autocomplete="off">
+ <header class="sheet-header">
+ <img src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="64" width="64" />
+ <h1><input name="name" type="text" value="{{actor.name}}"/></h1>
+ </header>
+ <div>
+
+ <p>Backstory:</p>
+ <div data-edit="data.bio.description" contenteditable>
+ {{data.bio.description}}
+ </div>
+ </div>
+</form>
No newline at end of file