Skip to content

Commit

Permalink
updated version number
Browse files Browse the repository at this point in the history
  • Loading branch information
rinickolous committed Oct 10, 2022
1 parent b09fa2c commit c2527d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
16 changes: 9 additions & 7 deletions module/chat/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Command = {
off: 'unset',
unset: 'unset',
'-': 'unset',
list: 'list'
list: 'list',
}

/** @typedef {{id: string, label: string, icon: string}} EffectData */
Expand Down Expand Up @@ -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
}
Expand All @@ -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)
Expand All @@ -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 => {
Expand Down
17 changes: 6 additions & 11 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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"
}
}

0 comments on commit c2527d1

Please sign in to comment.