# HG changeset patch # User Evan Giesel # Date 1607752149 21600 # Fri Dec 11 23:49:09 2020 -0600 # Node ID 7dc6cf5bc1261918120dd6cdc3744fed106e6dfa # Parent 0000000000000000000000000000000000000000 initial commit diff --git a/module/bearbones.js b/module/bearbones.js new file mode 100644 --- /dev/null +++ b/module/bearbones.js @@ -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 diff --git a/module/index.js b/module/index.js new file mode 100644 --- /dev/null +++ b/module/index.js @@ -0,0 +1,1 @@ +export const bearbones = {}; \ No newline at end of file diff --git a/module/sheets/HeroSheet.js b/module/sheets/HeroSheet.js new file mode 100644 --- /dev/null +++ b/module/sheets/HeroSheet.js @@ -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 diff --git a/styles/style.css b/styles/style.css new file mode 100644 diff --git a/system.json b/system.json new file mode 100644 --- /dev/null +++ b/system.json @@ -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 diff --git a/template.json b/template.json new file mode 100644 --- /dev/null +++ b/template.json @@ -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 diff --git a/templates/sheets/hero-sheet.hbs b/templates/sheets/hero-sheet.hbs new file mode 100644 --- /dev/null +++ b/templates/sheets/hero-sheet.hbs @@ -0,0 +1,13 @@ +
+
+ +

+
+
+ +

Backstory:

+
+ {{data.bio.description}} +
+
+
\ No newline at end of file