forked from GitHub-Mirrors/foundry-sw5e
Merge pull request #196 from unrealkakeman89/Develop-VJ
Add More Starship structure for future use
This commit is contained in:
commit
27c9dd4f3e
7 changed files with 334 additions and 87 deletions
|
@ -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"};
|
||||
|
|
159
module/config.js
159
module/config.js
|
@ -494,21 +494,109 @@ SW5E.powerDieTypes = [1, "d4", "d6", "d8", "d10", "d12"];
|
|||
* @type {Array.<string>}
|
||||
*/
|
||||
|
||||
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",
|
||||
|
|
|
@ -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",
|
||||
|
|
5
sw5e.js
5
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"
|
||||
});
|
||||
|
@ -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"
|
||||
];
|
||||
|
|
|
@ -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,
|
||||
|
@ -595,6 +624,7 @@
|
|||
"loot",
|
||||
"power",
|
||||
"species",
|
||||
"starship",
|
||||
"starshipfeature",
|
||||
"starshipmod",
|
||||
"tool",
|
||||
|
@ -786,6 +816,11 @@
|
|||
"conditions": ""
|
||||
}
|
||||
},
|
||||
"starshipDescription": {
|
||||
"description": {
|
||||
"value": ""
|
||||
}
|
||||
},
|
||||
"starshipEquipment": {
|
||||
"capx": {
|
||||
"value": null
|
||||
|
@ -964,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",
|
||||
|
|
|
@ -37,19 +37,19 @@
|
|||
</footer>
|
||||
</section>
|
||||
|
||||
{{!-- HIT POINTS --}}
|
||||
{{!-- HULL POINTS --}}
|
||||
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
|
||||
<h1 class="attribute-name rollable">{{ localize "SW5E.HullPoints" }}</h1>
|
||||
<div class="attribute-value multiple">
|
||||
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
||||
<input name="data.attributes.hull.value" type="text" value="{{data.attributes.hull.value}}"
|
||||
data-dtype="Number" class="value-number" />
|
||||
<span class="value-separator">/</span>
|
||||
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
||||
<input name="data.attributes.hull.max" type="text" value="{{data.attributes.hull.max}}"
|
||||
data-dtype="Number" class="value-number" />
|
||||
</div>
|
||||
<footer class="attribute-footer hit-points">
|
||||
<input name="data.attributes.hp.formula" class="hpformula" type="text"
|
||||
placeholder="{{ localize 'SW5E.HullPointsFormula' }}" value="{{data.attributes.hp.formula}}" style="min-width: 150px;" />
|
||||
<input name="data.attributes.hull.formula" class="hpformula" type="text"
|
||||
placeholder="{{ localize 'SW5E.HullPointsFormula' }}" value="{{data.attributes.hull.formula}}" style="min-width: 150px;" />
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
|
@ -57,15 +57,15 @@
|
|||
<section class="attribute health" style="box-sizing: border-box; width: 150px;">
|
||||
<h1 class="attribute-name rollable">{{ localize "SW5E.ShieldPoints" }}</h1>
|
||||
<div class="attribute-value multiple">
|
||||
<input name="data.attributes.hp.temp" type="text" value="{{data.attributes.hp.temp}}"
|
||||
<input name="data.attributes.shld.value" type="text" value="{{data.attributes.shld.value}}"
|
||||
data-dtype="Number" placeholder="10" class="value-number" />
|
||||
<span class="value-separator">/</span>
|
||||
<input name="data.attributes.hp.tempmax" type="text" value="{{data.attributes.hp.tempmax}}"
|
||||
<input name="data.attributes.shld.max" type="text" value="{{data.attributes.shld.max}}"
|
||||
data-dtype="Number" placeholder="10" class="value-number" />
|
||||
</div>
|
||||
<footer class="attribute-footer hit-points">
|
||||
<input name="data.attributes.sp.formula" class="hpformula" type="text"
|
||||
placeholder="{{ localize 'SW5E.ShieldPointsFormula' }}" value="{{data.attributes.sp.formula}}" style="min-width: 150px;" />
|
||||
<input name="data.attributes.shld.formula" class="hpformula" type="text"
|
||||
placeholder="{{ localize 'SW5E.ShieldPointsFormula' }}" value="{{data.attributes.shld.formula}}" style="min-width: 150px;" />
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
|
@ -159,9 +159,36 @@
|
|||
<select class="actor-size" name="data.details.role">
|
||||
{{#select data.details.role}}
|
||||
<option value=""> </option>
|
||||
{{#each config.starshipRolessm as |label role|}}
|
||||
<option value="{{role}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{#if isTiny}}
|
||||
{{#each config.starshipRolestiny as |label role|}}
|
||||
<option value="{{role}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if isSmall}}
|
||||
{{#each config.starshipRolessm as |label role|}}
|
||||
<option value="{{role}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if isMedium}}
|
||||
{{#each config.starshipRolesmed as |label role|}}
|
||||
<option value="{{role}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if isLarge}}
|
||||
{{#each config.starshipRoleslg as |label role|}}
|
||||
<option value="{{role}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if isHuge}}
|
||||
{{#each config.starshipRoleshuge as |label role|}}
|
||||
<option value="{{role}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if isGargantuan}}
|
||||
{{#each config.starshipRolesgrg as |label role|}}
|
||||
<option value="{{role}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
|
|
122
templates/items/starship.html
Normal file
122
templates/items/starship.html
Normal file
|
@ -0,0 +1,122 @@
|
|||
<form class="{{cssClass}} flexcol" autocomplete="off">
|
||||
|
||||
{{!-- Item Sheet Header --}}
|
||||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{item.img}}" title="{{item.name}}" data-edit="img"/>
|
||||
|
||||
<div class="header-details flexrow">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'SW5E.ClassName' }}"/>
|
||||
</h1>
|
||||
|
||||
<div class="item-subtitle">
|
||||
<h4 class="item-type">{{itemType}}</h4>
|
||||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{!-- Item Sheet Navigation --}}
|
||||
<nav class="sheet-navigation tabs" data-group="primary">
|
||||
<a class="item active" data-tab="description">{{ localize "SW5E.Description" }}</a>
|
||||
<a class="item" data-tab="details">{{ localize "SW5E.Details" }}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Item Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab flexrow active" data-group="primary" data-tab="description">
|
||||
{{editor content=data.description.value target="data.description.value" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
{{!-- Details Tab --}}
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
{{!-- Tier --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.StarshipTier" }}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.tier" value="{{data.tier}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Hull Dice --}}
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.HullDice"}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.hullDice">
|
||||
{{#select data.hullDice}}
|
||||
{{#each config.hitDieTypes}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.HullDiceStart"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" placeholder="0" name="data.hullDiceStart" value="{{data.hullDiceStart}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.HullDiceUsed"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" placeholder="0" name="data.hullDiceUsed" value="{{data.hullDiceUsed}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Shield Dice --}}
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.ShieldDice"}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.shldDice">
|
||||
{{#select data.shldDice}}
|
||||
{{#each config.hitDieTypes}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.ShieldDiceStart"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" placeholder="0" name="data.shldDiceStart" value="{{data.shldDiceStart}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.ShieldDiceUsed"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" placeholder="0" name="data.shldDiceUsed" value="{{data.shldDiceUsed}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Power Dice --}}
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.PowerDice"}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.pwrDice">
|
||||
{{#select data.pwrDice}}
|
||||
{{#each config.powerDieTypes}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
Loading…
Add table
Add a link
Reference in a new issue