Skip to content

Commit 9fce3fa

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/braces-3.0.3
2 parents 8e0b7d8 + 2c92f0d commit 9fce3fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1180
-477
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,15 @@
215215
"contributions": [
216216
"code"
217217
]
218+
},
219+
{
220+
"login": "arcos",
221+
"name": "Andrea Costantini",
222+
"avatar_url": "https://avatars.githubusercontent.com/u/143747?v=4",
223+
"profile": "https://github.com/arcos",
224+
"contributions": [
225+
"code"
226+
]
218227
}
219228
],
220229
"contributorsPerLine": 7,

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@
9898
"fromUuidSync": "readonly",
9999
"PoolTerm": "readonly"
100100
}
101-
}
101+
}

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
manifest: https://github.com/${{github.repository}}/releases/latest/download/system.json
5252
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/system.zip
5353

54+
# Replace "ose-dev" with "ose" in all files inside the dist folder
55+
- name: Replace 'ose-dev' with 'ose' in dist folder
56+
run: |
57+
find dist/ -type f -exec sed -i 's/ose-dev/ose/g' {} +
58+
5459
# Create a zip file with all files required by the module to add to the release
5560
- name: Create zip file
5661
# Remember to update the below line when there's a change in repository files/directories

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
node_modules
22
foundryconfig.json
3+
foundryconfig_*.json
4+
ose-dev.lock
35
dist
46
.DS_Store
57
.env

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</p>
1212

1313
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
14-
[![All Contributors](https://img.shields.io/badge/all_contributors-23-orange.svg?style=flat-square)](#contributors-)
14+
[![All Contributors](https://img.shields.io/badge/all_contributors-24-orange.svg?style=flat-square)](#contributors-)
1515
<!-- ALL-CONTRIBUTORS-BADGE:END -->
1616
[![Forge Installs](https://img.shields.io/badge/dynamic/json?label=Forge%20Installs&query=package.installs&suffix=%25&url=https%3A%2F%2Fforge-vtt.com%2Fapi%2Fbazaar%2Fpackage%2Fose&colorB=4aa94a)](https://forge-vtt.com/bazaar#package=ose)
1717
[![Foundry Hub Endorsements](https://img.shields.io/endpoint?logoColor=white&url=https%3A%2F%2Fwww.foundryvtt-hub.com%2Fwp-json%2Fhubapi%2Fv1%2Fpackage%2Fose%2Fshield%2Fendorsements)](https://www.foundryvtt-hub.com/package/ose/)
@@ -134,6 +134,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
134134
<tr>
135135
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Henrik-Bonsmann"><img src="https://avatars.githubusercontent.com/u/112704394?v=4?s=100" width="100px;" alt="Henrik Bonsmann"/><br /><sub><b>Henrik Bonsmann</b></sub></a><br /><a href="https://github.com/vttred/ose/pulls?q=is%3Apr+reviewed-by%3AHenrik-Bonsmann" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/vttred/ose/commits?author=Henrik-Bonsmann" title="Code">💻</a></td>
136136
<td align="center" valign="top" width="14.28%"><a href="https://github.com/apewall"><img src="https://avatars.githubusercontent.com/u/1915182?v=4?s=100" width="100px;" alt="Apewall"/><br /><sub><b>Apewall</b></sub></a><br /><a href="https://github.com/vttred/ose/commits?author=apewall" title="Code">💻</a></td>
137+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/arcos"><img src="https://avatars.githubusercontent.com/u/143747?v=4?s=100" width="100px;" alt="Andrea Costantini"/><br /><sub><b>Andrea Costantini</b></sub></a><br /><a href="https://github.com/vttred/ose/commits?author=arcos" title="Code">💻</a></td>
137138
</tr>
138139
</tbody>
139140
</table>

src/lang/en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"OSE.Reset": "Reset",
99
"OSE.Cancel": "Cancel",
1010
"OSE.Roll": "Roll",
11+
"OSE.Reroll": "Reroll",
1112
"OSE.Success": "Success",
1213
"OSE.Failure": "Failure",
1314

@@ -304,13 +305,16 @@
304305
"OSE.colors.orange": "Orange",
305306
"OSE.colors.white": "White",
306307

308+
"OSE.colors.black": "Black",
307309
"OSE.reaction.check": "Reaction Check",
308310
"OSE.reaction.Hostile": "{name} is Hostile",
309311
"OSE.reaction.Unfriendly": "{name} is Unfriendly",
310312
"OSE.reaction.Neutral": "{name} is Neutral",
311313
"OSE.reaction.Indifferent": "{name} is Indifferent",
312314
"OSE.reaction.Friendly": "{name} is Friendly",
313315

316+
"OSE.combat.SetCombatantAsActive": "Set Active",
317+
"OSE.combat.SetCombatantGroups": "Set Combatant Groups",
314318
"OSE.CombatFlag.SpellDeclared": "Spell Declared",
315319
"OSE.CombatFlag.RetreatFromMeleeDeclared": "Retreat From Melee Declared",
316320

src/lang/es.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"OSE.Reset": "Reinciar",
99
"OSE.Cancel": "Cancelar",
1010
"OSE.Roll": "Tirar",
11+
"OSE.Reroll": "Repetir tirada",
1112
"OSE.Success": "Éxito",
1213
"OSE.Failure": "Fallo",
1314
"OSE.dialog.tweaks": "Ajustes",
@@ -279,12 +280,15 @@
279280
"OSE.colors.blue": "Azul",
280281
"OSE.colors.orange": "Naranja",
281282
"OSE.colors.white": "Blanco",
283+
"OSE.colors.black": "Negro",
282284
"OSE.reaction.check": "Chequeo de reacción",
283285
"OSE.reaction.Hostile": "{name} es hostil",
284286
"OSE.reaction.Unfriendly": "{name} es poco amistoso",
285287
"OSE.reaction.Neutral": "{name} es neutral",
286288
"OSE.reaction.Indifferent": "{name} es indiferente",
287289
"OSE.reaction.Friendly": "{name} es amistoso",
290+
"OSE.combat.SetCombatantAsActive": "Activar",
291+
"OSE.combat.SetCombatantGroups": "Establecer grupos de combatientes",
288292
"OSE.CombatFlag.SpellDeclared": "Hechizo declarado",
289293
"OSE.CombatFlag.RetreatFromMeleeDeclared": "Retirada declarada",
290294
"OSE.Tweaks.DontApplyWeaponBonusToDamageRoll": "No aplicar el bonificador del arma a las tiradas de daño",

src/lang/it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"OSE.dialog.tweaks": "Modifiche",
1414
"OSE.dialog.partysheet": "Panoramica del Gruppo",
1515
"OSE.dialog.partysheetplaceholder": "Aggiungi Personaggi al Gruppo trascinandoli e rilasciandoli in questa finestra.",
16-
"OSE.dialog.partyselect": "Scegli Pg",
16+
"OSE.dialog.partyselect": "Seleziona PG",
1717
"OSE.dialog.createItem": "Crea Oggetto",
1818
"OSE.dialog.itemType": "Tipo Oggetto",
1919
"OSE.dialog.itemName": "Nome Oggetto",

src/module/actor/__tests__/data-model-character.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,22 @@ export default ({ describe, it, expect, after, before }: QuenchMethods) => {
1919
const dataModel = new OseDataModelCharacter();
2020
const ascendingACSetting = game.settings.get(game.system.id, "ascendingAC");
2121
const initiativeSetting = game.settings.get(game.system.id, "initiative");
22+
const encumbranceSetting = game.settings.get(
23+
game.system.id,
24+
"encumbranceOption"
25+
);
2226

2327
after(() => {
2428
game.settings.set(game.system.id, "ascendingAC", ascendingACSetting);
2529
game.settings.set(game.system.id, "initiative", initiativeSetting);
30+
game.settings.set(game.system.id, "encumbranceOption", encumbranceSetting);
2631
cleanUpActorsByKey(key);
2732
});
2833

2934
// @todo: Can this be tested without creating an actor?
3035
describe("prepareDerivedData()", () => {
3136
before(async () => {
37+
await game.settings.set(game.system.id, "encumbranceOption", "detailed");
3238
await createMockActor();
3339
});
3440

@@ -60,9 +66,9 @@ export default ({ describe, it, expect, after, before }: QuenchMethods) => {
6066
expect(actor?.system.encumbrance.steps).not.undefined;
6167
expect(actor?.system.encumbrance.value).not.undefined;
6268
expect(actor?.system.encumbrance.max).not.undefined;
63-
expect(actor?.system.encumbrance.atHalfEncumbered).not.undefined;
64-
expect(actor?.system.encumbrance.atQuarterEncumbered).not.undefined;
65-
expect(actor?.system.encumbrance.atEighthEncumbered).not.undefined;
69+
expect(actor?.system.encumbrance.steps).not.undefined;
70+
//expect(actor?.system.encumbrance.atQuarterEncumbered).not.undefined;
71+
//expect(actor?.system.encumbrance.atEighthEncumbered).not.undefined;
6672
});
6773

6874
it("has movement", async () => {

src/module/actor/character-sheet.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export default class OseActorSheetCharacter extends OseActorSheet {
8080
*/
8181
async getData() {
8282
const data = super.getData();
83+
8384
// Prepare owned items
8485
this._prepareItems(data);
8586

@@ -241,6 +242,7 @@ export default class OseActorSheetCharacter extends OseActorSheet {
241242
equipped: !item.system.equipped,
242243
},
243244
});
245+
244246
});
245247

246248
html.find("a[data-action='generate-scores']").click((ev) => {

0 commit comments

Comments
 (0)