From 6067f02aed176a95c5b50bb199ef717106d1c1e2 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sun, 25 Sep 2022 17:52:29 +0200 Subject: [PATCH] Fix level remaining --- modules/pegasus-actor.js | 2 +- system.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index e0b93e4..4fb1435 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -1120,7 +1120,7 @@ export class PegasusActor extends Actor { /* -------------------------------------------- */ getLevelRemaining() { - return this.system.biodata.currentlevelremaining + return this.system.biodata?.currentlevelremaining || 0 } /* -------------------------------------------- */ modifyHeroLevelRemaining(incDec) { diff --git a/system.json b/system.json index ee8f6cd..0dcbb83 100644 --- a/system.json +++ b/system.json @@ -253,7 +253,7 @@ ], "title": "Pegasus RPG", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", - "version": "10.0.16", - "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.0.16.zip", + "version": "10.0.17", + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.0.17.zip", "background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp" } \ No newline at end of file