Skip to content

Commit

Permalink
0.15.21
Browse files Browse the repository at this point in the history
  • Loading branch information
crnormand committed Jan 9, 2023
1 parent 711ecb4 commit 5d092a8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

If you can't access the Google doc, here is a [PDF](https://github.com/crnormand/gurps/raw/main/docs/Guide%20for%20GURPS%204e%20on%20Foundry%20VTT.pdf) of the latest version.

# Current Release Version 0.15.20 (compatible with FoundryVTT v10.x)
# Current Release Version 0.15.21 (compatible with FoundryVTT v10.x)

With support for the [Nordlondr Ovinabokin: Bestiary and Enemies module](https://foundryvtt.com/packages/nordlond-bestiary)!

Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### [Users Guide](https://bit.ly/2JaSlQd) for GURPS 4e Game Aid for Foundry VTT

Release 0.15.21 01/09/2023

- Fixed removing effect updates modifier window immediately

Release 0.15.20 01/09/2023

- Fixed error when tooltip opens on actor without any user modifiers
Expand Down
7 changes: 4 additions & 3 deletions module/actor/effect-modifier-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export class EffectModifierControl {
Hooks.on('getSceneControlButtons', this._createEffectModifierButton.bind(this))
Hooks.on('controlToken', this._controlToken.bind(this))
Hooks.on('updateToken', this._updateToken.bind(this))
Hooks.on('createActiveEffect', this._createActiveEffect.bind(this))
Hooks.on('createActiveEffect', this._updatedActiveEffect.bind(this))
Hooks.on('deleteActiveEffect', this._updatedActiveEffect.bind(this))
Hooks.on('targetToken', this._targetToken.bind(this))
Hooks.once('ready', () => {
if (this.shouldUseEffectModifierPopup()) {
Expand Down Expand Up @@ -75,10 +76,10 @@ export class EffectModifierControl {
}
}

_createActiveEffect(effect, _, __) {
_updatedActiveEffect(effect, _, __) {
let effectID = effect?.parent.id
let sharedStateID = this.token?.actor.id
console.debug(`_createActiveEffect: effect id: ${effectID}, token actor id: ${sharedStateID}`)
console.debug(`updated ActiveEffect: effect id: ${effectID}, token actor id: ${sharedStateID}`)
if (effect?.parent.id === this.token?.actor.id) this._ui.render(false)
}

Expand Down
4 changes: 2 additions & 2 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.20",
"version": "0.15.21",
"authors": [
{
"name": "Chris Normand",
Expand Down Expand Up @@ -81,7 +81,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/archive/0.15.20.zip",
"download": "https://github.com/crnormand/gurps/archive/0.15.21.zip",
"socket": true,
"license": "LICENSE.txt"
}

0 comments on commit 5d092a8

Please sign in to comment.