Skip to content

Commit

Permalink
Merge pull request #1562 from Miskatonic-Investigative-Society/develop
Browse files Browse the repository at this point in the history
0.10.17
  • Loading branch information
snap01 authored Jun 11, 2024
2 parents 370c942 + f858173 commit a8940b5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Happy gaming !

When not specified, all changes were made by @castanhocorreia, @HavlockV, and @snap01.

## Version 0.10.17

When not specified, all changes were made by @castanhocorreia, @HavlockV, and @snap01.

- Fix chase item on FoundryVTT v12

## Version 0.10.16

When not specified, all changes were made by @castanhocorreia, @HavlockV, and @snap01.
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ This project uses [socketlib](https://github.com/manuelVo/foundryvtt-socketlib)

This system uses trademarks and/or copyrights owned by Chaosium Inc/Moon Design Publications LLC, which are used under [Chaosium Inc's Fan Material Policy](https://www.chaosium.com/fan-material-policy/). We are expressly prohibited from charging you to use or access this content. This system is not published, endorsed, or specifically approved by Chaosium Inc. For more information about Chaosium Inc's products, please visit www.chaosium.com.

> Permission is given for users to make limited derivative use of this publication for personal use on the Foundry VTT platform. No rights for any commercial use are granted. No part of this publication may be reproduced or distributed for use outside of the Foundry VTT platform. All rights are reserved with Chaosium Inc.
> Permission is given for users to make derivative use of the work on the Foundry VTT platform. No rights for any commercial use are granted. No part of this work may be reproduced or distributed for use outside of the Foundry VTT platform. All rights are reserved with Chaosium Inc.
>
> Call of Cthulhu © copyright 1981–2023 Chaosium Inc. All rights reserved.
> Call of Cthulhu (tm) Chaosium, Inc. Used with permission. All rights reserved.
>
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14 changes: 7 additions & 7 deletions module/items/chase/sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ export class CoC7ChaseSheet extends ItemSheet {
participant.data.rollUuid = roll.uuid
}

await this.item.update({ 'data.participants': participants })
await this.item.update({ 'system.participants': participants })
}

_onDragEnterParticipant (event) {
Expand All @@ -952,7 +952,7 @@ export class CoC7ChaseSheet extends ItemSheet {
? foundry.utils.duplicate(this.item.system.participants)
: []
participants[index].chaser = !participants[index].chaser
await this.item.update({ 'data.participants': participants })
await this.item.update({ 'system.participants': participants })
}

async _onDeleteDriver (event) {
Expand All @@ -965,7 +965,7 @@ export class CoC7ChaseSheet extends ItemSheet {
: []
const participant = participants[index]
delete participant.docUuid
await this.item.update({ 'data.participants': participants })
await this.item.update({ 'system.participants': participants })
}

async _onDeleteParticipant (event) {
Expand All @@ -977,7 +977,7 @@ export class CoC7ChaseSheet extends ItemSheet {
? foundry.utils.duplicate(this.item.system.participants)
: []
participants.splice(index, 1)
await this.item.update({ 'data.participants': participants })
await this.item.update({ 'system.participants': participants })
}

async _onResetRoll (event) {
Expand All @@ -989,7 +989,7 @@ export class CoC7ChaseSheet extends ItemSheet {
? foundry.utils.duplicate(this.item.system.participants)
: []
delete participants[index].speedCheck.rollDataString
await this.item.update({ 'data.participants': participants })
await this.item.update({ 'system.participants': participants })
}

async alterParticipant (data, uuid) {
Expand Down Expand Up @@ -1054,7 +1054,7 @@ export class CoC7ChaseSheet extends ItemSheet {
const oldParticipant = participants[index]
if (oldParticipant.mov) delete oldParticipant.mov
foundry.utils.mergeObject(oldParticipant, participant)
await this.item.update({ 'data.participants': participants })
await this.item.update({ 'system.participants': participants })
}

async clearActiveLocationCoordinates () {
Expand Down Expand Up @@ -1160,7 +1160,7 @@ export class CoC7ChaseSheet extends ItemSheet {
}

participants.push(participant)
await this.item.update({ 'data.participants': participants })
await this.item.update({ 'system.participants': participants })
}

async toggleParticipantGun (participantUuid) {
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": "CoC7",
"title": "Call of Cthulhu 7th Edition",
"description": "An implementation of the Call of Cthulhu 7th Edition game system for Foundry Virtual Tabletop.",
"version": "0.10.16",
"version": "0.10.17",
"authors": [
{
"name": "Miskatonic Investigative Society"
Expand Down Expand Up @@ -151,5 +151,5 @@
"secondaryTokenAttribute": "attribs.san",
"url": "https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT",
"manifest": "https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT/releases/latest/download/system.json",
"download": "https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT/releases/download/0.10.16/system.zip"
"download": "https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT/releases/download/0.10.17/system.zip"
}

0 comments on commit a8940b5

Please sign in to comment.