From 692538f0c291c487a7e6a8bafbe94f0e4483dde0 Mon Sep 17 00:00:00 2001 From: supervj <64861570+supervj@users.noreply.github.com> Date: Thu, 29 Apr 2021 16:56:30 -0400 Subject: [PATCH 1/3] Test for the Prof Here are my changes, not sure if it will help. --- module/actor/sheets/newSheet/starship.js | 8 ++ module/config.js | 159 ++++++++++++++--------- sw5e.js | 3 +- templates/actors/newActor/starship.html | 33 ++++- 4 files changed, 140 insertions(+), 63 deletions(-) diff --git a/module/actor/sheets/newSheet/starship.js b/module/actor/sheets/newSheet/starship.js index 0385dcb5..3e08cdcf 100644 --- a/module/actor/sheets/newSheet/starship.js +++ b/module/actor/sheets/newSheet/starship.js @@ -94,6 +94,14 @@ export default class ActorSheet5eStarship extends ActorSheet5e { getData() { const data = super.getData(); + // Add Size info + data.isTiny = data.actor.data.traits.size === "tiny"; + data.isSmall = data.actor.data.traits.size === "sm"; + data.isMedium = data.actor.data.traits.size === "med"; + data.isLarge = data.actor.data.traits.size === "lg"; + data.isHuge = data.actor.data.traits.size === "huge"; + data.isGargantuan = data.actor.data.traits.size === "grg"; + // Challenge Rating const cr = parseFloat(data.data.details.cr || 0); const crLabels = {0: "0", 0.125: "1/8", 0.25: "1/4", 0.5: "1/2"}; diff --git a/module/config.js b/module/config.js index 783f2ea2..a3bc8157 100644 --- a/module/config.js +++ b/module/config.js @@ -494,21 +494,109 @@ SW5E.powerDieTypes = [1, "d4", "d6", "d8", "d10", "d12"]; * @type {Array.} */ -SW5E.baseStarshipSettingsTiny = {"changes":[{"key":"data.abilities.dex.value","value":4,"mode":2,"priority":20},{"key":"data.abilities.dex.proficient","value":1,"mode":4,"priority":20}, {"key":"data.abilities.con.value","value":-4,"mode":2,"priority":20}, {"key":"data.abilities.int.proficient","value":1,"mode":4,"priority":20}], "attributes":{"crewcap":null, "hd":"1d4", "hp":{"value":4, "max":4, "temp":4, "tempmax":4}, "hsm":1, "sd":"1d4", "mods":{"open":10, "max":10}, "suites":{"open":0, "max":0}, "movement":{"fly":300, "turn":300}}}; - -SW5E.baseStarshipSettingsSm = {"changes":[{"key":"data.abilities.dex.value","value":2,"mode":2,"priority":20},{"key":"data.abilities.dex.proficient","value":1,"mode":4,"priority":20},{"key":"data.abilities.con.value","value":-2,"mode":2,"priority":20},{"key":"data.abilities.str.proficient","value":1,"mode":4,"priority":20}], "attributes":{"crewcap":1, "hd":"3d6", "hp":{"value":6, "max":6, "temp":6, "tempmax":6}, "hsm":2, "sd":"3d6", "mods":{"open":20, "max":20}, "suites":{"open":-1, "max":-1}, "movement":{"fly":300, "turn":250}}}; - -SW5E.baseStarshipSettingsMed = {"attributes":{"crewcap":1, "hd":"5d8", "hp":{"value":8, "max":8, "temp":8, "tempmax":8}, "hsm":3, "sd":"5d8", "mods":{"open":30, "max":30}, "suites":{"open":3, "max":3}, "movement":{"fly":300, "turn":200}}}; - -SW5E.baseStarshipSettingsLg = {"changes":[{"key":"data.abilities.dex.value","value":-2,"mode":2,"priority":20},{"key":"data.abilities.wis.proficient","value":1,"mode":4,"priority":20},{"key":"data.abilities.con.value","value":2,"mode":2,"priority":20}], "attributes":{"crewcap":200, "hd":"7d10", "hp":{"value":10, "max":10, "temp":10, "tempmax":10}, "hsm":4, "sd":"7d10", "mods":{"open":50, "max":50}, "suites":{"open":3, "max":3}, "movement":{"fly":300, "turn":150}}}; - -SW5E.baseStarshipSettingsHuge = {"changes":[{"key":"data.abilities.dex.value","value":-4,"mode":2,"priority":20},{"key":"data.abilities.wis.proficient","value":1,"mode":4,"priority":20},{"key":"data.abilities.con.value","value":4,"mode":2,"priority":20}], "attributes":{"crewcap":4000, "hd":"9d12", "hp":{"value":12, "max":12, "temp":12, "tempmax":12}, "hsm":2, "sd":"9d12", "mods":{"open":60, "max":60}, "suites":{"open":6, "max":6}, "movement":{"fly":300, "turn":100}}}; - -SW5E.baseStarshipSettingsGrg = {"changes":[{"key":"data.abilities.dex.value","value":-6,"mode":2,"priority":20},{"key":"data.abilities.wis.proficient","value":1,"mode":4,"priority":20},{"key":"data.abilities.con.value","value":6,"mode":2,"priority":20}], "attributes":{"crewcap":80000, "hd":"11d20", "hp":{"value":20, "max":20, "temp":20, "tempmax":20}, "hsm":3, "sd":"11d20", "mods":{"open":70, "max":70}, "suites":{"open":10, "max":10}, "movement":{"fly":300, "turn":50}}}; - +SW5E.baseStarshipSettings = { + "tiny": {"changes":[{"key":"data.abilities.dex.value","value":4,"mode":2,"priority":20},{"key":"data.abilities.dex.proficient","value":1,"mode":4,"priority":20}, {"key":"data.abilities.con.value","value":-4,"mode":2,"priority":20}, {"key":"data.abilities.int.proficient","value":1,"mode":4,"priority":20}], "attributes":{"crewcap":null, "hd":"1d4", "hp":{"value":4, "max":4, "temp":4, "tempmax":4}, "hsm":1, "sd":"1d4", "mods":{"open":10, "max":10}, "suites":{"open":0, "max":0}, "movement":{"fly":300, "turn":300}}}, + "sm": {"changes":[{"key":"data.abilities.dex.value","value":2,"mode":2,"priority":20},{"key":"data.abilities.dex.proficient","value":1,"mode":4,"priority":20},{"key":"data.abilities.con.value","value":-2,"mode":2,"priority":20},{"key":"data.abilities.str.proficient","value":1,"mode":4,"priority":20}], "attributes":{"crewcap":1, "hd":"3d6", "hp":{"value":6, "max":6, "temp":6, "tempmax":6}, "hsm":2, "sd":"3d6", "mods":{"open":20, "max":20}, "suites":{"open":-1, "max":-1}, "movement":{"fly":300, "turn":250}}}, + "med": {"attributes":{"crewcap":1, "hd":"5d8", "hp":{"value":8, "max":8, "temp":8, "tempmax":8}, "hsm":3, "sd":"5d8", "mods":{"open":30, "max":30}, "suites":{"open":3, "max":3}, "movement":{"fly":300, "turn":200}}}, + "lg": {"changes":[{"key":"data.abilities.dex.value","value":-2,"mode":2,"priority":20},{"key":"data.abilities.wis.proficient","value":1,"mode":4,"priority":20},{"key":"data.abilities.con.value","value":2,"mode":2,"priority":20}], "attributes":{"crewcap":200, "hd":"7d10", "hp":{"value":10, "max":10, "temp":10, "tempmax":10}, "hsm":4, "sd":"7d10", "mods":{"open":50, "max":50}, "suites":{"open":3, "max":3}, "movement":{"fly":300, "turn":150}}}, + "huge": {"changes":[{"key":"data.abilities.dex.value","value":-4,"mode":2,"priority":20},{"key":"data.abilities.wis.proficient","value":1,"mode":4,"priority":20},{"key":"data.abilities.con.value","value":4,"mode":2,"priority":20}], "attributes":{"crewcap":4000, "hd":"9d12", "hp":{"value":12, "max":12, "temp":12, "tempmax":12}, "hsm":2, "sd":"9d12", "mods":{"open":60, "max":60}, "suites":{"open":6, "max":6}, "movement":{"fly":300, "turn":100}}}, + "grg": {"changes":[{"key":"data.abilities.dex.value","value":-6,"mode":2,"priority":20},{"key":"data.abilities.wis.proficient","value":1,"mode":4,"priority":20},{"key":"data.abilities.con.value","value":6,"mode":2,"priority":20}], "attributes":{"crewcap":80000, "hd":"11d20", "hp":{"value":20, "max":20, "temp":20, "tempmax":20}, "hsm":3, "sd":"11d20", "mods":{"open":70, "max":70}, "suites":{"open":10, "max":10}, "movement":{"fly":300, "turn":50}}} +} /* -------------------------------------------- */ +/** + * The set of starship roles which can be selected in SW5e + * @type {Object} + */ + + SW5E.starshipRolestiny = { +}; +SW5E.starshipRolessm = { + "bmbr": "SW5E.StarshipBomber", + "intc": "SW5E.StarshipInterceptor", + "scout": "SW5E.StarshipScout", + "scrm": "SW5E.StarshipScrambler", + "shtl": "SW5E.StarshipShuttle", + "strf": "SW5E.StarshipStrikeFighter" +}; +SW5E.starshipRolesmed = { + "cour": "SW5E.StarshipCourier", + "frtr": "SW5E.StarshipFreighter", + "gnbt": "SW5E.StarshipGunboat", + "msbt": "SW5E.StarshipMissileBoat", + "nvgt": "SW5E.StarshipNavigator", + "yacht": "SW5E.StarshipYacht" +}; +SW5E.starshipRoleslg = { + "ambd": "SW5E.StarshipAmbassador", + "corv": "SW5E.StarshipCorvette", + "crui": "SW5E.StarshipCruiser", + "expl": "SW5E.StarshipExplorer", + "pics": "SW5E.StarshipPicketShip", + "shtd": "SW5E.StarshipShipsTender" +}; +SW5E.starshipRoleshuge = { + "btls": "SW5E.StarshipBattleship", + "carr": "SW5E.StarshipCarrier", + "colo": "SW5E.StarshipColonizer", + "cmds": "SW5E.StarshipCommandShip", + "intd": "SW5E.StarshipInterdictor", + "jugg": "SW5E.StarshipJuggernaut" +}; +SW5E.starshipRolesgrg = { + "blks": "SW5E.StarshipBlockadeShip", + "flgs": "SW5E.StarshipFlagship", + "inct": "SW5E.StarshipIndustrialCenter", + "mbmt": "SW5E.StarshipMobileMetropolis", + "rsrc": "SW5E.StarshipResearcher", + "wars": "SW5E.StarshipWarship" +}; + +/* -------------------------------------------- */ + +/** + * The set of starship role bonuses to starships which can be selected in SW5e + * @type {Object} + */ + + SW5E.starshipRoleBonuses = { + "bmbr": {"changes":[{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20}]}, + "intc": {"changes":[{"key":"data.abilities.dex.value","value":1,"mode":2,"priority":20}]}, + "scout": {"changes":[{"key":"data.abilities.int.value","value":1,"mode":2,"priority":20}]}, + "scrm": {"changes":[{"key":"data.abilities.cha.value","value":1,"mode":2,"priority":20}]}, + "shtl": {"changes":[{"key":"data.abilities.con.value","value":1,"mode":2,"priority":20}]}, + "strf": {"changes":[{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "cour": {"changes":[{"key":"data.abilities.dex.value","value":1,"mode":2,"priority":20}]}, + "frtr": {"changes":[{"key":"data.abilities.con.value","value":1,"mode":2,"priority":20}]}, + "gnbt": {"changes":[{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "msbt": {"changes":[{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20}]}, + "nvgt": {"changes":[{"key":"data.abilities.int.value","value":1,"mode":2,"priority":20}]}, + "yacht": {"changes":[{"key":"data.abilities.cha.value","value":1,"mode":2,"priority":20}]}, + "ambd": {"changes":[{"key":"data.abilities.cha.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.con.value","value":1,"mode":2,"priority":20}]}, + "corv": {"changes":[{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.dex.value","value":1,"mode":2,"priority":20}]}, + "crui": {"changes":[{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "expl": {"changes":[{"key":"data.abilities.dex.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.int.value","value":1,"mode":2,"priority":20}]}, + "pics": {"changes":[{"key":"data.abilities.dex.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20}]}, + "shtd": {"changes":[{"key":"data.abilities.con.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "btls": {"changes":[{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "carr": {"changes":[{"key":"data.abilities.cha.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.int.value","value":1,"mode":2,"priority":20}]}, + "colo": {"changes":[{"key":"data.abilities.con.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.int.value","value":1,"mode":2,"priority":20}]}, + "cmds": {"changes":[{"key":"data.abilities.cha.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20}]}, + "intd": {"changes":[{"key":"data.abilities.dex.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "jugg": {"changes":[{"key":"data.abilities.con.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "blks": {"changes":[{"key":"data.abilities.dex.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "flgs": {"changes":[{"key":"data.abilities.cha.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20}]}, + "inct": {"changes":[{"key":"data.abilities.con.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]}, + "mbmt": {"changes":[{"key":"data.abilities.con.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20}]}, + "rsrc": {"changes":[{"key":"data.abilities.int.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20}]}, + "wars": {"changes":[{"key":"data.abilities.wis.value","value":1,"mode":2,"priority":20},{"key":"data.abilities.str.value","value":1,"mode":2,"priority":20}]} +}; + +/* -------------------------------------------- */ + + + /** * The set of possible sensory perception types which an Actor may have * @type {object} @@ -572,53 +660,6 @@ SW5E.starshipSkills = { /* -------------------------------------------- */ -/** - * The set of starship roles which can be selected in SW5e - * @type {Object} - */ -SW5E.starshipRolessm = { - "bmbr": "SW5E.StarshipBomber", - "intc": "SW5E.StarshipInterceptor", - "scout": "SW5E.StarshipScout", - "scrm": "SW5E.StarshipScrambler", - "shtl": "SW5E.StarshipShuttle", - "strf": "SW5E.StarshipStrikeFighter" -}; -SW5E.starshipRolesmed = { - "cour": "SW5E.StarshipCourier", - "frtr": "SW5E.StarshipFreighter", - "gnbt": "SW5E.StarshipGunboat", - "msbt": "SW5E.StarshipMissileBoat", - "nvgt": "SW5E.StarshipNavigator", - "yacht": "SW5E.StarshipYacht" -}; -SW5E.starshipRoleslg = { - "ambd": "SW5E.StarshipAmbassador", - "corv": "SW5E.StarshipCorvette", - "crui": "SW5E.StarshipCruiser", - "expl": "SW5E.StarshipExplorer", - "pics": "SW5E.StarshipPicketShip", - "shtd": "SW5E.StarshipShipsTender" -}; -SW5E.starshipRoleshuge = { - "btls": "SW5E.StarshipBattleship", - "carr": "SW5E.StarshipCarrier", - "colo": "SW5E.StarshipColonizer", - "cmds": "SW5E.StarshipCommandShip", - "intd": "SW5E.StarshipInterdictor", - "jugg": "SW5E.StarshipJuggernaut" -}; -SW5E.starshipRolesgrg = { - "blks": "SW5E.StarshipBlockadeShip", - "flgs": "SW5E.StarshipFlagship", - "inct": "SW5E.StarshipIndustrialCenter", - "mbmt": "SW5E.StarshipMobileMetropolis", - "rsrc": "SW5E.StarshipResearcher", - "wars": "SW5E.StarshipWarship" -}; - -/* -------------------------------------------- */ - SW5E.powerPreparationModes = { "prepared": "SW5E.PowerPrepPrepared", "always": "SW5E.PowerPrepAlways", diff --git a/sw5e.js b/sw5e.js index c1b15bf1..17c4e249 100644 --- a/sw5e.js +++ b/sw5e.js @@ -160,7 +160,8 @@ Hooks.once("setup", function() { "abilities", "abilityAbbreviations", "abilityActivationTypes", "abilityConsumptionTypes", "actorSizes", "alignments", "armorProficiencies", "armorPropertiesTypes", "conditionTypes", "consumableTypes", "cover", "currencies", "damageResistanceTypes", "damageTypes", "distanceUnits", "equipmentTypes", "healingTypes", "itemActionTypes", "languages", - "limitedUsePeriods", "movementTypes", "movementUnits", "polymorphSettings", "proficiencyLevels", "senses", "skills", "starshipRolessm", "starshipRolesmed", "starshipRoleslg", "starshipRoleshuge", "starshipRolesgrg", "starshipSkills", + "limitedUsePeriods", "movementTypes", "movementUnits", "polymorphSettings", "proficiencyLevels", "senses", "skills", + "starshipRolessm", "starshipRolesmed", "starshipRoleslg", "starshipRoleshuge", "starshipRolesgrg", "starshipSkills", "powerComponents", "powerLevels", "powerPreparationModes", "powerScalingModes", "powerSchools", "targetTypes", "timePeriods", "toolProficiencies", "weaponProficiencies", "weaponProperties", "weaponSizes", "weaponTypes" ]; diff --git a/templates/actors/newActor/starship.html b/templates/actors/newActor/starship.html index 08d7e275..88169e89 100644 --- a/templates/actors/newActor/starship.html +++ b/templates/actors/newActor/starship.html @@ -159,9 +159,36 @@ From 6ecf1e7b961bbe175bd0f13205fcfcee4431bf46 Mon Sep 17 00:00:00 2001 From: supervj <64861570+supervj@users.noreply.github.com> Date: Sat, 1 May 2021 23:43:24 -0400 Subject: [PATCH 2/3] Split Hull and Shield Made new properties instead of using the Character values since there is already logic built into them that is fighting what we want to do. Also added Power dice structure --- template.json | 53 +++++++++++++++++++------ templates/actors/newActor/starship.html | 18 ++++----- 2 files changed, 50 insertions(+), 21 deletions(-) diff --git a/template.json b/template.json index 5dd69951..04b56318 100644 --- a/template.json +++ b/template.json @@ -419,25 +419,54 @@ "dr": 0, "engpow": 1, "exhaustion": 0, - "hd": "", - "hp": { - "value": 10, - "max": 10, - "formula": "", - "temp": 0, - "tempmax": 0 + "hulldie": "", + "hulldice": 0, + "hull": { + "value": 0, + "max": 0, + "formula": "" + }, + "shlddie": "", + "shlddice": 0, + "shld": { + "value": 0, + "max": 0, + "formula": "" }, "hsm": 1, "mods": { "open": 10, "max": 10 }, - "pd": "", - "sd": "", - "shieldpow": 1, - "sp": { - "formula": "" + "pwrdice": { + "pwrdie": "", + "recovery": 1, + "central": { + "value": 0, + "max": 0 + }, + "comms": { + "value": 0, + "max": 0 + }, + "engines": { + "value": 0, + "max": 0 + }, + "shields": { + "value": 0, + "max": 0 + }, + "sensors": { + "value": 0, + "max": 0 + }, + "weapons": { + "value": 0, + "max": 0 + } }, + "shieldpow": 1, "sscap": 0, "suites": { "open": 0, diff --git a/templates/actors/newActor/starship.html b/templates/actors/newActor/starship.html index 88169e89..3e760a7c 100644 --- a/templates/actors/newActor/starship.html +++ b/templates/actors/newActor/starship.html @@ -37,19 +37,19 @@ - {{!-- HIT POINTS --}} + {{!-- HULL POINTS --}}

{{ localize "SW5E.HullPoints" }}

- / -
- +
@@ -57,15 +57,15 @@

{{ localize "SW5E.ShieldPoints" }}

- / -
- +
From d0eae6424147ac3af940976b9770b675bdbfc1d4 Mon Sep 17 00:00:00 2001 From: supervj <64861570+supervj@users.noreply.github.com> Date: Sun, 2 May 2021 00:53:46 -0400 Subject: [PATCH 3/3] Created Starship size as "class" This will be used to automatically upgrade Tier and Dice. Need to build in logic still --- module/templates.js | 4 +- sw5e.js | 2 +- template.json | 19 ++++++ templates/items/starship.html | 122 ++++++++++++++++++++++++++++++++++ 4 files changed, 144 insertions(+), 3 deletions(-) create mode 100644 templates/items/starship.html diff --git a/module/templates.js b/module/templates.js index bd98cf47..a27bdf71 100644 --- a/module/templates.js +++ b/module/templates.js @@ -14,12 +14,12 @@ export const preloadHandlebarsTemplates = async function() { "systems/sw5e/templates/actors/oldActor/parts/actor-inventory.html", "systems/sw5e/templates/actors/oldActor/parts/actor-features.html", "systems/sw5e/templates/actors/oldActor/parts/actor-powerbook.html", - "systems/sw5e/templates/actors/oldActor/parts/actor-notes.html", + "systems/sw5e/templates/actors/oldActor/parts/actor-notes.html", "systems/sw5e/templates/actors/newActor/parts/swalt-biography.html", "systems/sw5e/templates/actors/newActor/parts/swalt-core.html", "systems/sw5e/templates/actors/newActor/parts/swalt-crew.html", - "systems/sw5e/templates/actors/newActor/parts/swalt-active-effects.html", + "systems/sw5e/templates/actors/newActor/parts/swalt-active-effects.html", "systems/sw5e/templates/actors/newActor/parts/swalt-features.html", "systems/sw5e/templates/actors/newActor/parts/swalt-inventory.html", "systems/sw5e/templates/actors/newActor/parts/swalt-force-powerbook.html", diff --git a/sw5e.js b/sw5e.js index 17c4e249..e412f4f3 100644 --- a/sw5e.js +++ b/sw5e.js @@ -136,7 +136,7 @@ Hooks.once("init", function() { }); Items.unregisterSheet("core", ItemSheet); Items.registerSheet("sw5e", ItemSheet5e, { - types: ['weapon', 'equipment', 'consumable', 'tool', 'loot', 'class', 'power', 'feat', 'species', 'backpack', 'archetype', 'classfeature', 'background', 'fightingmastery', 'fightingstyle', 'lightsaberform', 'deployment', 'deploymentfeature', 'starshipfeature', 'starshipmod', 'venture'], + types: ['weapon', 'equipment', 'consumable', 'tool', 'loot', 'class', 'power', 'feat', 'species', 'backpack', 'archetype', 'classfeature', 'background', 'fightingmastery', 'fightingstyle', 'lightsaberform', 'deployment', 'deploymentfeature', 'starship', 'starshipfeature', 'starshipmod', 'venture'], makeDefault: true, label: "SW5E.SheetClassItem" }); diff --git a/template.json b/template.json index 04b56318..1e4066f5 100644 --- a/template.json +++ b/template.json @@ -624,6 +624,7 @@ "loot", "power", "species", + "starship", "starshipfeature", "starshipmod", "tool", @@ -815,6 +816,11 @@ "conditions": "" } }, + "starshipDescription": { + "description": { + "value": "" + } + }, "starshipEquipment": { "capx": { "value": null @@ -993,6 +999,19 @@ "formula": null } }, + "starship": { + "templates": ["starshipDescription"], + "size": "", + "tier": 0, + "hullDice": "d6", + "hullDiceStart": 1, + "hullDiceUsed": 0, + "shldDice": "d6", + "shldDiceStart": 1, + "shldDiceUsed": 0, + "pwrDice": "1", + "source": "SotG" + }, "starshipfeature": { "templates": ["itemDescription", "activatedEffect", "action"], "size": "med", diff --git a/templates/items/starship.html b/templates/items/starship.html new file mode 100644 index 00000000..1ced5c4c --- /dev/null +++ b/templates/items/starship.html @@ -0,0 +1,122 @@ +
+ + {{!-- Item Sheet Header --}} +
+ + +
+

+ +

+ +
+

{{itemType}}

+ {{itemStatus}} +
+ +
    +
  • + +
  • +
+
+
+ + {{!-- Item Sheet Navigation --}} + + + {{!-- Item Sheet Body --}} +
+ + {{!-- Description Tab --}} +
+ {{editor content=data.description.value target="data.description.value" button=true owner=owner editable=editable}} +
+ + {{!-- Details Tab --}} +
+ + {{!-- Tier --}} +
+ +
+ +
+
+ + {{!-- Hull Dice --}} +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{!-- Shield Dice --}} +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ + {{!-- Power Dice --}} +
+ +
+ +
+
+ +
+
+