From 5b37acd53053cebe5e9c9c738086bf66150989a0 Mon Sep 17 00:00:00 2001 From: Matthew Jording Date: Thu, 28 Nov 2024 01:23:58 -0500 Subject: [PATCH] closes #69 health and focus lower limit at -300 --- CONTRIBUTING.md | 2 +- module/data/actor-base.mjs | 4 ++-- package.json | 2 +- system.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a4d6348..6b4e37f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -166,7 +166,7 @@ If either of these conditions are not met on the commit that tag points at, the - The `system.json` file's `download` url must match the expected outcome of the release CI artifact. This should simply be changing version numbers in the url to match the release version. ```text -https://github.com/mjording/marvel-multiverse/releases/download/release-1.9.0/marvel-multiverse-1.9.0.zip +https://github.com/mjording/marvel-multiverse/releases/download/release-1.9.1/marvel-multiverse-1.9.1.zip └─ Tag Name ──┘ └─ V ─┘ (version) ``` diff --git a/module/data/actor-base.mjs b/module/data/actor-base.mjs index 0581ff6..662985c 100644 --- a/module/data/actor-base.mjs +++ b/module/data/actor-base.mjs @@ -32,13 +32,13 @@ export default class MarvelMultiverseActorBase extends foundry.abstract.TypeData }, {})); schema.health = new fields.SchemaField({ - value: new fields.NumberField({ required: true, nullable: false, initial: 0 }), + value: new fields.NumberField({ required: true, nullable: false, initial: 0, min: -300 }), max: new fields.NumberField({ required: true, nullable: false, initial: 0 }) }); schema.healthDamageReduction = new fields.NumberField({ ...requiredInteger, initial: 0}) schema.focus = new fields.SchemaField({ - value: new fields.NumberField({ required: true, nullable: false, initial: 0 }), + value: new fields.NumberField({ required: true, nullable: false, initial: 0, min: -300 }), max: new fields.NumberField({ required: true, nullable: false, initial: 0 }) }); diff --git a/package.json b/package.json index bd85481..0073986 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "marvel-multiverse", - "version": "1.9.0", + "version": "1.9.1", "description": "CSS compiler for the MarvelMultiverse system", "scripts": { "build:css": "sass src/scss/marvel-multiverse.scss css/marvel-multiverse.css --style=expanded --no-source-map", diff --git a/system.json b/system.json index 0563b53..580e262 100644 --- a/system.json +++ b/system.json @@ -25,7 +25,7 @@ "thumbnail": "systems/marvel-multiverse/ui/official/mmrpg-setup-thumbnail.png" } ], - "version": "1.9.0", + "version": "1.9.1", "compatibility": { "minimum": 12, "verified": "12.328" @@ -116,7 +116,7 @@ ], "socket": true, "manifest": "https://raw.githubusercontent.com/mjording/marvel-multiverse/main/system.json", - "download": "https://github.com/mjording/marvel-multiverse/releases/download/release-1.9.0/marvel-multiverse-release-1.9.0.zip", + "download": "https://github.com/mjording/marvel-multiverse/releases/download/release-1.9.1/marvel-multiverse-release-1.9.1.zip", "background": "systems/marvel-multiverse/ui/official/mmrpg-background.webp", "grid": { "distance": 5,