# HG changeset patch # User Evan Giesel # Date 1633648569 18000 # Thu Oct 07 18:16:09 2021 -0500 # Node ID e1bff1f328dfff848e99e364a4e2cae92917c297 # Parent e613cec8148371d141f864777e9d2a9971622123 rebrand back to bearbones diff --git a/Bearbones.js b/Bearbones.js --- a/Bearbones.js +++ b/Bearbones.js @@ -4,13 +4,13 @@ Hooks.once("init", function() { console.log('Bearbones | look ma no brains') - game.bearbones2 = { + game.bearbones = { } CONFIG.Actor.documentClass = BearActor; Actors.unregisterSheet("core", ActorSheet); - Actors.registerSheet("bearbones2", BearSheet, { + Actors.registerSheet("bearbones", BearSheet, { // types: ["pc", "enemy", "vehicle"], makeDefault: true, // label: "Bearbones.CharacterSheet" diff --git a/modules/bear_actor.js b/modules/bear_actor.js --- a/modules/bear_actor.js +++ b/modules/bear_actor.js @@ -15,22 +15,22 @@ brightSight: 0, disposition: 1, displayName: CONST.TOKEN_DISPLAY_MODES.ALWAYS, - displayBars: CONST.TOKEN_DISPLAY_MODES.OWNER, - bar1: {attribute: "combat.health"}, - img: "systems/bearbones2/icons/npc.png", + displayBars: CONST.TOKEN_DISPLAY_MODES.NONE, + bar1: {attribute: "health.health"}, + img: "systems/bearbones/icons/npc.png", }); - this.data.update({img: "systems/bearbones2/icons/npc.png"}) + this.data.update({img: "systems/bearbones/icons/npc.png"}) } else if (this.type === "enemy") { this.data.token.update({ vision: false, actorLink: true, disposition: -1, - displayName: CONST.TOKEN_DISPLAY_MODES.OWNER, - displayBars: CONST.TOKEN_DISPLAY_MODES.ALWAYS, - bar1: {attribute: "combat.health"}, - img: "systems/bearbones2/icons/npc_angery.png", + displayName: CONST.TOKEN_DISPLAY_MODES.HOVER, + displayBars: CONST.TOKEN_DISPLAY_MODES.HOVER, + bar1: {attribute: "health.health"}, + img: "systems/bearbones/icons/npc_angery.png", }); - this.data.update({img: "systems/bearbones2/icons/npc_angery.png"}) + this.data.update({img: "systems/bearbones/icons/npc_angery.png"}) } else if (this.type === "object") { this.data.token.update({ vision: false, @@ -38,9 +38,9 @@ disposition: 0, displayName: CONST.TOKEN_DISPLAY_MODES.HOVER, displayBars: CONST.TOKEN_DISPLAY_MODES.NONE, - img: "systems/bearbones2/icons/npc_spear.png", + img: "systems/bearbones/icons/npc_spear.png", }); - this.data.update({img: "systems/bearbones2/icons/npc_spear.png"}) + this.data.update({img: "systems/bearbones/icons/npc_spear.png"}) } } diff --git a/modules/bear_sheet.js b/modules/bear_sheet.js --- a/modules/bear_sheet.js +++ b/modules/bear_sheet.js @@ -2,8 +2,8 @@ export default class BearSheet extends ActorSheet { static get defaultOptions() { return mergeObject(super.defaultOptions, { - classes: ["bearbones2", "sheet", "actor"], - template: `systems/bearbones2/templates/sheets/bear-sheet.html`, + classes: ["bearbones", "sheet", "actor"], + template: `systems/bearbones/templates/sheets/bear-sheet.html`, width: 720, height: 680 }); @@ -11,7 +11,7 @@ getData() { const data = super.getData(); data.isGM = game.user.isGM; - console.log(data); + // console.log(data); return data; } } \ No newline at end of file diff --git a/system.json b/system.json --- a/system.json +++ b/system.json @@ -1,6 +1,6 @@ { - "name": "bearbones2", - "title": "Bearbones is Bearbones 2", + "name": "bearbones", + "title": "Bearbones is Bearbones", "description": "My Dog ate my Character Sheet", "packs": [], "languages": [],