Skip to content

Commit

Permalink
Merge pull request #1495 from Miskatonic-Investigative-Society/develop
Browse files Browse the repository at this point in the history
0.10.11
  • Loading branch information
snap01 authored Feb 10, 2024
2 parents 529fb58 + 37112fe commit 1643968
Show file tree
Hide file tree
Showing 16 changed files with 117 additions and 95 deletions.
42 changes: 24 additions & 18 deletions .github/ABANDONED.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

Thank you for being interested in making Call of Cthulhu 7th Edition for Foundry VTT better! Below is a list of translations keys on existing files that still need translated, based on `en.json`.

[cn.json (383 untranslated strings)](#cnjson)
[cn.json (384 untranslated strings)](#cnjson)

[cs.json (568 untranslated strings)](#csjson)
[cs.json (569 untranslated strings)](#csjson)

[ko.json (165 untranslated strings)](#kojson)
[ko.json (166 untranslated strings)](#kojson)

[pt-BR.json (113 untranslated strings)](#ptbrjson)
[pt-BR.json (114 untranslated strings)](#ptbrjson)

[ru.json (1229 untranslated strings)](#rujson)
[ru.json (1230 untranslated strings)](#rujson)

[sv.json (351 untranslated strings)](#svjson)
[sv.json (352 untranslated strings)](#svjson)


## cn.json
383 untranslated strings
384 untranslated strings
```
"CoC7.ActorIsTokenHint": "Actor is a token",
"CoC7.ActorDataLinked": "Actor data are linked",
Expand Down Expand Up @@ -400,10 +400,11 @@ Thank you for being interested in making Call of Cthulhu 7th Edition for Foundry
"CoC7.TokenCreationRoll.Title": "Rollable detected",
"CoC7.TokenCreationRoll.Prompt": "This token has rollables characteristics or skills.<br>What do you want to do ?",
"CoC7.TokenCreationRoll.ButtonRoll": "Roll all",
"CoC7.TokenCreationRoll.ButtonAverage": "Average all"
"CoC7.TokenCreationRoll.ButtonAverage": "Average all",
"CoC7.RealRollDecaderPlaceholderName": "10's"
```
## cs.json
568 untranslated strings
569 untranslated strings
```
"CoC7.Entities.Character": "Character",
"CoC7.Entities.Container": "Container",
Expand Down Expand Up @@ -972,10 +973,11 @@ Thank you for being interested in making Call of Cthulhu 7th Edition for Foundry
"CoC7.TokenCreationRoll.Title": "Rollable detected",
"CoC7.TokenCreationRoll.Prompt": "This token has rollables characteristics or skills.<br>What do you want to do ?",
"CoC7.TokenCreationRoll.ButtonRoll": "Roll all",
"CoC7.TokenCreationRoll.ButtonAverage": "Average all"
"CoC7.TokenCreationRoll.ButtonAverage": "Average all",
"CoC7.RealRollDecaderPlaceholderName": "10's"
```
## ko.json
165 untranslated strings
166 untranslated strings
```
"CoC7.CustomSpecialisationLabel": "Custom label - {specialisation}",
"CoC7.RollDifficultyRegularTitle": "Regular difficulty",
Expand Down Expand Up @@ -1141,10 +1143,11 @@ Thank you for being interested in making Call of Cthulhu 7th Edition for Foundry
"CoC7.TokenCreationRoll.Title": "Rollable detected",
"CoC7.TokenCreationRoll.Prompt": "This token has rollables characteristics or skills.<br>What do you want to do ?",
"CoC7.TokenCreationRoll.ButtonRoll": "Roll all",
"CoC7.TokenCreationRoll.ButtonAverage": "Average all"
"CoC7.TokenCreationRoll.ButtonAverage": "Average all",
"CoC7.RealRollDecaderPlaceholderName": "10's"
```
## pt-BR.json
113 untranslated strings
114 untranslated strings
```
"CoC7.EraRegency": "Regency Cthulhu - Standard",
"CoC7.EraRegencyPulp": "Regency Cthulhu - Pulp",
Expand Down Expand Up @@ -1258,10 +1261,11 @@ Thank you for being interested in making Call of Cthulhu 7th Edition for Foundry
"CoC7.TokenCreationRoll.Title": "Rollable detected",
"CoC7.TokenCreationRoll.Prompt": "This token has rollables characteristics or skills.<br>What do you want to do ?",
"CoC7.TokenCreationRoll.ButtonRoll": "Roll all",
"CoC7.TokenCreationRoll.ButtonAverage": "Average all"
"CoC7.TokenCreationRoll.ButtonAverage": "Average all",
"CoC7.RealRollDecaderPlaceholderName": "10's"
```
## ru.json
1229 untranslated strings
1230 untranslated strings
```
"CoC7.title": "Call of Cthulhu 7h Edition",
"CoC7.Entities.Character": "Character",
Expand Down Expand Up @@ -2491,10 +2495,11 @@ Thank you for being interested in making Call of Cthulhu 7th Edition for Foundry
"CoC7.TokenCreationRoll.Title": "Rollable detected",
"CoC7.TokenCreationRoll.Prompt": "This token has rollables characteristics or skills.<br>What do you want to do ?",
"CoC7.TokenCreationRoll.ButtonRoll": "Roll all",
"CoC7.TokenCreationRoll.ButtonAverage": "Average all"
"CoC7.TokenCreationRoll.ButtonAverage": "Average all",
"CoC7.RealRollDecaderPlaceholderName": "10's"
```
## sv.json
351 untranslated strings
352 untranslated strings
```
"CoC7.ActorIsTokenHint": "Actor is a token",
"CoC7.ActorDataLinked": "Actor data are linked",
Expand Down Expand Up @@ -2846,5 +2851,6 @@ Thank you for being interested in making Call of Cthulhu 7th Edition for Foundry
"CoC7.TokenCreationRoll.Title": "Rollable detected",
"CoC7.TokenCreationRoll.Prompt": "This token has rollables characteristics or skills.<br>What do you want to do ?",
"CoC7.TokenCreationRoll.ButtonRoll": "Roll all",
"CoC7.TokenCreationRoll.ButtonAverage": "Average all"
"CoC7.TokenCreationRoll.ButtonAverage": "Average all",
"CoC7.RealRollDecaderPlaceholderName": "10's"
```
9 changes: 9 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ Happy gaming !

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

## Version 0.10.11

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

- Fix investigator wizard drag and drop for players
- Label decaders in Real Dice - Manual Rolling module
- Prevent cancelling casting spells from overwriting rolls with a fixed value
- Reimplement Dice So Nice support to fix other people seeing rolled dice in their selected appearance

## Version 0.10.10

When not specified, all changes were made by @castanhocorreia, @HavlockV, and @snap01.
Expand Down
47 changes: 24 additions & 23 deletions .github/TRANSLATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,38 @@

Thank you for being interested in making Call of Cthulhu 7th Edition for Foundry VTT better! Below is a list of translations keys on existing files that still need translated, based on `en.json`. Feel free to create a new `*.json` file for a language that is not shown here!

The following translations are currently up to date **fr**, **it**, **pl**

The following translations have more than 50 untranslated strings [are you able to help?](./ABANDONED.md)

[cn.json (383 untranslated strings)](./ABANDONED.md#cnjson)
[cn.json (384 untranslated strings)](./ABANDONED.md#cnjson)

[cs.json (568 untranslated strings)](./ABANDONED.md#csjson)
[cs.json (569 untranslated strings)](./ABANDONED.md#csjson)

[ko.json (165 untranslated strings)](./ABANDONED.md#kojson)
[ko.json (166 untranslated strings)](./ABANDONED.md#kojson)

[pt-BR.json (113 untranslated strings)](./ABANDONED.md#ptbrjson)
[pt-BR.json (114 untranslated strings)](./ABANDONED.md#ptbrjson)

[ru.json (1229 untranslated strings)](./ABANDONED.md#rujson)
[ru.json (1230 untranslated strings)](./ABANDONED.md#rujson)

[sv.json (351 untranslated strings)](./ABANDONED.md#svjson)
[sv.json (352 untranslated strings)](./ABANDONED.md#svjson)



|Key|de|es|ja|zh-TW|
|:---|:---:|:---:|:---:|:---:|
|**Remaining**:|**1**|**1**|**10**|**12**|
|[CoC7.EraRegency](#coc7eraregency)|&#9989;|&#9989;|&#9989;|&#x274C;|
|[CoC7.EraRegencyPulp](#coc7eraregencypulp)|&#9989;|&#9989;|&#9989;|&#x274C;|
|[CoC7.ErrorTokenIncorrect](#coc7errortokenincorrect)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|[CoC7.PersonalSpecialityPlaceholder](#coc7personalspecialityplaceholder)|&#x274C;|&#x274C;|&#x274C;|&#x274C;|
|[CoC7.SanityLossType](#coc7sanitylosstype)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|[CoC7.System.Documentation](#coc7systemdocumentation)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|[CoC7.TokenCreationRoll.ButtonAverage](#coc7tokencreationrollbuttonaverage)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|[CoC7.TokenCreationRoll.ButtonRoll](#coc7tokencreationrollbuttonroll)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|[CoC7.TokenCreationRoll.Prompt](#coc7tokencreationrollprompt)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|[CoC7.TokenCreationRoll.Title](#coc7tokencreationrolltitle)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|[SETTINGS.SceneDistanceNotCalcualtedNoError](#settingsscenedistancenotcalcualtednoerror)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|[SETTINGS.SceneDistanceNotCalcualtedNoErrorHint](#settingsscenedistancenotcalcualtednoerrorhint)|&#9989;|&#9989;|&#x274C;|&#x274C;|
|Key|de|es|fr|it|ja|pl|zh-TW|
|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
|**Remaining**:|**2**|**2**|**1**|**1**|**11**|**1**|**13**|
|[CoC7.EraRegency](#coc7eraregency)|&#9989;|&#9989;|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|
|[CoC7.EraRegencyPulp](#coc7eraregencypulp)|&#9989;|&#9989;|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|
|[CoC7.ErrorTokenIncorrect](#coc7errortokenincorrect)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[CoC7.PersonalSpecialityPlaceholder](#coc7personalspecialityplaceholder)|&#x274C;|&#x274C;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[CoC7.RealRollDecaderPlaceholderName](#coc7realrolldecaderplaceholdername)|&#x274C;|&#x274C;|&#x274C;|&#x274C;|&#x274C;|&#x274C;|&#x274C;|
|[CoC7.SanityLossType](#coc7sanitylosstype)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[CoC7.System.Documentation](#coc7systemdocumentation)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[CoC7.TokenCreationRoll.ButtonAverage](#coc7tokencreationrollbuttonaverage)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[CoC7.TokenCreationRoll.ButtonRoll](#coc7tokencreationrollbuttonroll)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[CoC7.TokenCreationRoll.Prompt](#coc7tokencreationrollprompt)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[CoC7.TokenCreationRoll.Title](#coc7tokencreationrolltitle)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[SETTINGS.SceneDistanceNotCalcualtedNoError](#settingsscenedistancenotcalcualtednoerror)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
|[SETTINGS.SceneDistanceNotCalcualtedNoErrorHint](#settingsscenedistancenotcalcualtednoerrorhint)|&#9989;|&#9989;|&#9989;|&#9989;|&#x274C;|&#9989;|&#x274C;|
##### CoC7.EraRegency
``` "CoC7.EraRegency": "Regency Cthulhu - Standard",```
##### CoC7.EraRegencyPulp
Expand All @@ -43,6 +42,8 @@ The following translations have more than 50 untranslated strings [are you able
``` "CoC7.ErrorTokenIncorrect": "Unable to find selected token",```
##### CoC7.PersonalSpecialityPlaceholder
``` "CoC7.PersonalSpecialityPlaceholder": "other skill(s) as personal or era specialties",```
##### CoC7.RealRollDecaderPlaceholderName
``` "CoC7.RealRollDecaderPlaceholderName": "10's",```
##### CoC7.SanityLossType
``` "CoC7.SanityLossType": "Type",```
##### CoC7.System.Documentation
Expand Down
4 changes: 3 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1298,5 +1298,7 @@
"CoC7.TokenCreationRoll.Title": "Rollable detected",
"CoC7.TokenCreationRoll.Prompt": "This token has rollables characteristics or skills.<br>What do you want to do ?",
"CoC7.TokenCreationRoll.ButtonRoll": "Roll all",
"CoC7.TokenCreationRoll.ButtonAverage": "Average all"
"CoC7.TokenCreationRoll.ButtonAverage": "Average all",

"CoC7.RealRollDecaderPlaceholderName": "10's"
}
6 changes: 3 additions & 3 deletions module/apps/decader-die.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* global DiceTerm */
/* global Die */

export class CoC7DecaderDie extends DiceTerm {
export class CoC7DecaderDie extends Die {
constructor (termData) {
termData.faces = 10
super(termData)
this.faces = 10
}

get total () {
Expand Down
34 changes: 0 additions & 34 deletions module/apps/decader-dsn-faces.js

This file was deleted.

8 changes: 8 additions & 0 deletions module/apps/investigator-wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,14 @@ export class CoC7InvestigatorWizard extends FormApplication {
}
}

_canDragStart (selector) {
return true
}

_canDragDrop (selector) {
return true
}

async _onDrop (event) {
try {
const dataList = JSON.parse(event.dataTransfer.getData('text/plain'))
Expand Down
20 changes: 20 additions & 0 deletions module/hooks/dice-so-nice-ready-last.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* global Hooks */
export function listen () {
Hooks.once('diceSoNiceReady', dice3d => {
for (const system in dice3d.DiceFactory.systems) {
const d100 = dice3d.DiceFactory.systems[system].dice.find(d => d.type === 'd100')
if (typeof d100 !== 'undefined') {
if (typeof dice3d.DiceFactory.systems[system].dice.find(d => d.type === 'dt') === 'undefined') {
const diceDecader = Object.assign(Object.create(Object.getPrototypeOf(d100)), d100)
diceDecader.type = 'dt'
dice3d.DiceFactory.systems[system].dice.push(diceDecader)
}
if (typeof dice3d.DiceFactory.systems[system].dice.find(d => d.type === 'do') === 'undefined') {
const diceDecader = Object.assign(Object.create(Object.getPrototypeOf(d100)), d100)
diceDecader.type = 'do'
dice3d.DiceFactory.systems[system].dice.push(diceDecader)
}
}
}
})
}
5 changes: 1 addition & 4 deletions module/hooks/dice-so-nice-ready.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* global game, Hooks */
import { CoC7DecaderDSNFaces } from '../apps/decader-dsn-faces.js'

/* global Hooks */
export function listen () {
Hooks.once('diceSoNiceReady', dice3d => {
dice3d.addDicePreset({
Expand All @@ -15,6 +13,5 @@ export function listen () {
fontScale: 0.75,
system: 'standard'
})
game.CoC7DecaderDSNFaces = new CoC7DecaderDSNFaces()
})
}
6 changes: 0 additions & 6 deletions module/hooks/dice-so-nice-roll-start.js

This file was deleted.

4 changes: 2 additions & 2 deletions module/hooks/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as CreateToken from './create-token.js'
import * as DiceSoNiceReady from './dice-so-nice-ready.js'
import * as DiceSoNiceRollStart from './dice-so-nice-roll-start.js'
import * as Init from './init.js'
import * as Ready from './ready.js'
import * as RenderActorSheet from './render-actor-sheet.js'
Expand All @@ -9,13 +8,13 @@ import * as RenderDialog from './render-dialog.js'
import * as RenderItemSheet from './render-item-sheet.js'
import * as RenderPause from './render-pause.js'
import * as RenderPlayerList from './render-player-list.js'
import * as RenderRealRoll from './render-real-roll.js'
import * as RenderSettingsConfig from './render-settings-config.js'

export const CoC7Hooks = {
listen () {
CreateToken.listen()
DiceSoNiceReady.listen()
DiceSoNiceRollStart.listen()
Init.listen()
Ready.listen()
RenderActorSheet.listen()
Expand All @@ -24,6 +23,7 @@ export const CoC7Hooks = {
RenderItemSheet.listen()
RenderPause.listen()
RenderPlayerList.listen()
RenderRealRoll.listen()
RenderSettingsConfig.listen()
}
}
2 changes: 2 additions & 0 deletions module/hooks/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { handlebarsHelper } from '../scripts/handlebars-helper.js'
import { compendiumFilter } from '../scripts/compendium-filter.js'
import { CoCID } from '../scripts/coc-id.js'
import { CoC7Link } from '../apps/coc7-link.js'
import * as DiceSoNiceReadyLast from './dice-so-nice-ready-last.js'

export function listen () {
Hooks.once('init', async () => {
Expand All @@ -18,5 +19,6 @@ export function listen () {
compendiumFilter()
CoCID.init()
CoC7Link.init()
DiceSoNiceReadyLast.listen()
})
}
17 changes: 17 additions & 0 deletions module/hooks/render-real-roll.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* global game, Hooks */
import { CoC7DecaderDie } from '../apps/decader-die.js'

export function listen () {
Hooks.on('renderRealRoll', (app, html, options) => {
for (const term in options.dieTerms) {
for (const input in options.dieTerms[term].inputs) {
if (options.dieTerms[term] instanceof CoC7DecaderDie) {
const tag = html.find('[name="' + term + '.' + input + '"]')
if (tag.length === 1) {
tag[0].placeholder = game.i18n.localize('CoC7.RealRollDecaderPlaceholderName')
}
}
}
}
})
}
2 changes: 1 addition & 1 deletion module/items/spell/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class CoC7Spell extends CoC7Item {
/** This is not owned by any Actor */
return ui.notifications.error(game.i18n.localize('CoC7.NotOwned'))
}
const costs = this.system.costs
const costs = foundry.utils.duplicate(this.system.costs)
const losses = []
let convertSurplusIntoHitPoints
costs.magicPoints = CoC7Utilities.isFormula(costs.magicPoints)
Expand Down
2 changes: 1 addition & 1 deletion styles/sheets/spell.less
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
.body {
input {
flex: 0;
min-width: 2.5rem;
min-width: 6rem;
}

grid-area: body;
Expand Down
Loading

0 comments on commit 1643968

Please sign in to comment.