diff --git a/modules/dark-stars-config.js b/modules/dark-stars-config.js index d437f5f..e299663 100644 --- a/modules/dark-stars-config.js +++ b/modules/dark-stars-config.js @@ -30,6 +30,11 @@ export const DARKSTARS_CONFIG = { "slug": "Slug throwers", "energy": "Energy" }, + perktypes: { + "normal": "Normal", + "advanced": "Advanced", + "role": "Role" + }, range: { "1": "Close", "2": "Short", diff --git a/modules/dark-stars-utility.js b/modules/dark-stars-utility.js index 32d52f1..3503a68 100644 --- a/modules/dark-stars-utility.js +++ b/modules/dark-stars-utility.js @@ -50,22 +50,6 @@ export class DarkStarsUtility { /*-------------------------------------------- */ static gameSettings() { - /*game.settings.register("fvtt-dark-stars", "dice-color-skill", { - name: "Dice color for skills", - hint: "Set the dice color for skills", - scope: "world", - config: true, - requiresReload: true , - default: "#101010", - type: String - }) - - Hooks.on('renderSettingsConfig', (event) => { - const element = event.element[0].querySelector(`[name='fvtt-dark-stars.dice-color-skill']`) - if (!element) return - // Replace placeholder element - console.log("Element Found !!!!") - }) */ } /*-------------------------------------------- */ diff --git a/packs/perks.db b/packs/perks.db new file mode 100644 index 0000000..e69de29 diff --git a/system.json b/system.json index 7ab4098..816a67a 100644 --- a/system.json +++ b/system.json @@ -83,6 +83,15 @@ "system": "fvtt-dark-stars", "private": false, "flags": {} + }, + { + "type": "Item", + "label": "Perks", + "name": "perks", + "path": "packs/perks.db", + "system": "fvtt-dark-stars", + "private": false, + "flags": {} } ], "primaryTokenAttribute": "secondary.hp", @@ -91,7 +100,7 @@ "styles": [ "styles/simple.css" ], - "version": "10.0.6", + "version": "10.0.8", "compatibility": { "minimum": "10", "verified": "10", @@ -99,7 +108,7 @@ }, "title": "Dark Stars RPG", "manifest": "https://www.uberwald.me/gitea/uberwald/fvtt-dark-stars/raw/branch/main/system.json", - "download": "https://www.uberwald.me/gitea/uberwald/fvtt-dark-stars/archive/fvtt-dark-stars-v10.0.6.zip", + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-dark-stars/archive/fvtt-dark-stars-v10.0.8.zip", "url": "https://www.uberwald.me/gitea/uberwald/", "background": "images/ui/dark_stars_welcome_page.webp", "id": "fvtt-dark-stars" diff --git a/template.json b/template.json index 7043796..16543b5 100644 --- a/template.json +++ b/template.json @@ -269,6 +269,10 @@ "description": "" }, "perk": { + "perktype": "", + "role": "", + "requirements": "", + "xpcost": 0, "cost": 0, "description": "" }, @@ -350,7 +354,8 @@ "weapon": { "weapontype": "", "associatedskill": "", - "penetration": "", + "penetrationmin": "", + "penetrationmax": "", "damage": "", "bulk": 0, "br": 0, diff --git a/templates/items/item-perk-sheet.hbs b/templates/items/item-perk-sheet.hbs index 2ca643f..f764d13 100644 --- a/templates/items/item-perk-sheet.hbs +++ b/templates/items/item-perk-sheet.hbs @@ -15,10 +15,39 @@
+
  • + +
  • + + {{#if (eq system.perktype "normal")}}
  • + {{else}} + + {{#if (eq system.perktype "role")}} +
  • + + +
  • + {{/if}} + +
  • + + +
  • +
  • + + +
  • + {{/if}}
    diff --git a/templates/items/item-weapon-sheet.hbs b/templates/items/item-weapon-sheet.hbs index 7f231c0..9773a66 100644 --- a/templates/items/item-weapon-sheet.hbs +++ b/templates/items/item-weapon-sheet.hbs @@ -38,29 +38,33 @@ {{/select}} -
  • - + +
  • +
  • +
  • + +
  • - +
  • - +
  • - +
  • - +
  • @@ -84,19 +88,19 @@
  • - +
  • - +
  • - +
  • - +