Skip to content

Commit

Permalink
Merge pull request #1358 from Miskatonic-Investigative-Society/develop
Browse files Browse the repository at this point in the history
0.10.2
  • Loading branch information
snap01 authored Jun 18, 2023
2 parents 25014e0 + cda87a9 commit 9c0a484
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
9 changes: 8 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
# :warning: Important note

- :warning: __MAKE A COPY OF YOUR WORLD BEFORE UPGRADING__
- please report any bug encountered on GitHub, specify if you used V10 version.
- please report any bug encountered on GitHub

Happy gaming !

## Upcoming Release

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

## Version 0.10.2

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

- Fix adding (Any) specialisation skills to actors if both requiresname and picknameonly are not set
- Fix migrated skills with eras not having a CoC ID preventing migration completing

## Version 0.10.1

When not specified, all changes were made by @castanhocorreia, @HavlockV, and @snap01.
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ assignees: ''

<!-- Your issue may already be reported! Please search on the issue tracker before creating one. -->

- [ ] Have you checked the Upcoming Release section of the changelog to see if the issue will be resolved in the next release? https://github.com/Miskatonic-Investigative-Society/CoC7-FoundryVTT/blob/develop/.github/CHANGELOG.md
- [ ] Are you running the latest version of both Foundry VTT and Call of Cthulhu 7th Edition?
- [ ] Have you tested whether the bug persists without any other modules activated or on Foundry Launch in Safe Configuration?

Expand Down
3 changes: 2 additions & 1 deletion module/actors/actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,7 @@ export class CoCActor extends Actor {
let addThis = true

if (CoC7Item.isAnySpec(data)) {
const isAnyButNotFlagged = (!(data.system.properties?.requiresname) ?? false) && !(data.system.properties?.picknameonly ?? false)
let skillList = []
const group = game.system.api.cocid.guessGroupFromDocument(data)
if (group) {
Expand Down Expand Up @@ -977,7 +978,7 @@ export class CoCActor extends Actor {
}
const skillData = await SkillSpecializationSelectDialog.create({
skills: skillList,
allowCustom: (data.system.properties?.requiresname ?? false),
allowCustom: (isAnyButNotFlagged || (data.system.properties?.requiresname ?? false)),
fixedBaseValue: (data.system.properties?.keepbasevalue ?? false),
specializationName: data.system.specialization,
label: data.name,
Expand Down
6 changes: 3 additions & 3 deletions module/apps/coc-id-batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class CoCIDBatch extends FormApplication {
for (const item of actorData.items) {
const itemData = item instanceof CONFIG.Item.documentClass ? item.toObject() : item
if (itemData.type === 'skill') {
if (!itemData.flags.CoC7?.cocidFlag?.id.match(/^i.skill/)) {
if (!itemData.flags.CoC7?.cocidFlag?.id?.match(/^i.skill/)) {
if (typeof missingNames[itemData.name] === 'undefined') {
missingNames[itemData.name] = ''
}
Expand All @@ -167,7 +167,7 @@ export class CoCIDBatch extends FormApplication {
for (const item of game.items.contents) {
const itemData = item instanceof CONFIG.Item.documentClass ? item.toObject() : item
if (itemData.type === 'skill') {
if (!itemData.flags.CoC7?.cocidFlag?.id.match(/^i.skill/)) {
if (!itemData.flags.CoC7?.cocidFlag?.id?.match(/^i.skill/)) {
if (typeof missingNames[itemData.name] === 'undefined') {
missingNames[itemData.name] = ''
}
Expand All @@ -189,7 +189,7 @@ export class CoCIDBatch extends FormApplication {
for (const item of actorData.items ?? []) {
const itemData = item instanceof CONFIG.Item.documentClass ? item.toObject() : item
if (itemData.type === 'skill') {
if (!itemData.flags.CoC7?.cocidFlag?.id.match(/^i.skill/)) {
if (!itemData.flags.CoC7?.cocidFlag?.id?.match(/^i.skill/)) {
if (typeof missingNames[itemData.name] === 'undefined') {
missingNames[itemData.name] = ''
}
Expand Down
2 changes: 1 addition & 1 deletion module/items/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export class CoC7Item extends Item {
return [
game.i18n.localize('CoC7.AnySpecName').toLowerCase(),
'any'
].includes(CoC7Item.getNameWithoutSpec(item).toLowerCase())
].includes(CONFIG.Item.documentClasses.skill.guessNameParts(item.name).skillName.toLowerCase())
}

async checkSkillProperties () {
Expand Down
2 changes: 1 addition & 1 deletion 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.1",
"version": "0.10.2",
"authors": [
{
"name": "Miskatonic Investigative Society"
Expand Down

0 comments on commit 9c0a484

Please sign in to comment.