diff --git a/module/chat/status.js b/module/chat/status.js index 54ee361b2..430ddee25 100644 --- a/module/chat/status.js +++ b/module/chat/status.js @@ -14,7 +14,7 @@ const Command = { off: 'unset', unset: 'unset', '-': 'unset', - list: 'list' + list: 'list', } /** @typedef {{id: string, label: string, icon: string}} EffectData */ @@ -74,7 +74,10 @@ export default class StatusChatProcessor extends ChatProcessor { if (!effectText) { ui.notifications.warn(i18n('GURPS.chatNoStatusMatched')) return - } else if (!effectText.match(new RegExp(makeRegexPatternFrom(GURPS.StatusEffectStanding), 'i')) && !effectText.match(new RegExp(makeRegexPatternFrom(i18n(GURPS.StatusEffectStandingLabel)), 'i'))) { + } else if ( + !effectText.match(new RegExp(makeRegexPatternFrom(GURPS.StatusEffectStanding), 'i')) && + !effectText.match(new RegExp(makeRegexPatternFrom(i18n(GURPS.StatusEffectStandingLabel)), 'i')) + ) { ui.notifications.warn(i18n('GURPS.chatNoStatusMatched') + " '" + effectText + "'") return } @@ -87,11 +90,11 @@ export default class StatusChatProcessor extends ChatProcessor { } if (isStanding) { - if (theCommand == Command.set) + if (theCommand == Command.set) for (const pid in GURPS.StatusEffect.getAllPostures()) { await this.unset(tokens, this.findEffect(pid)) } - return // can't toggle or unset standing + return // can't toggle or unset standing } if (theCommand == Command.toggle) return await this.toggle(tokens, effect) else if (theCommand == Command.set) return await this.set(tokens, effect) @@ -114,9 +117,8 @@ export default class StatusChatProcessor extends ChatProcessor { if (effect) { effect.posture = !!GURPS.StatusEffect.getAllPostures()[id] || id == GURPS.StatusEffectStanding sortedEffects.push(effect) - } - else if (id == GURPS.StatusEffectStanding) - sortedEffects.push({ id: id, label: GURPS.StatusEffectStandingLabel, posture: true}) + } else if (id == GURPS.StatusEffectStanding) + sortedEffects.push({ id: id, label: GURPS.StatusEffectStandingLabel, posture: true }) } sortedEffects.forEach(s => { diff --git a/system.json b/system.json index ccedd8944..f02df5f1e 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "gurps", "title": "GURPS 4e Game Aid (Unofficial)", "description": "A game aid to help play GURPS 4e for Foundry VTT", - "version": "0.15.6", + "version": "0.15.7", "authors": [ { "name": "Chris Normand", @@ -24,16 +24,11 @@ ], "compatibility": { "minimum": "10", - "verified": "10.286", + "verified": "10.287", "maximum": "10" }, - "esmodules": [ - "module/gurps.js", - "lib/xregexp-all.js" - ], - "scripts": [ - "scripts/jquery.tinycolorpicker.js" - ], + "esmodules": ["module/gurps.js", "lib/xregexp-all.js"], + "scripts": ["scripts/jquery.tinycolorpicker.js"], "styles": [ "styles/simple.css", "styles/css_boilerplate.css", @@ -81,7 +76,7 @@ "secondaryTokenAttribute": "FP", "url": "https://github.com/crnormand/gurps", "manifest": "https://raw.githubusercontent.com/crnormand/gurps/release/system.json", - "download": "https://github.com/crnormand/gurps/releases/download/0.15.6/system.zip", + "download": "https://github.com/crnormand/gurps/releases/download/0.15.7/system.zip", "socket": true, "license": "LICENSE.txt" -} \ No newline at end of file +}