Skip to content

Commit

Permalink
Merge pull request #523 from Muttley/develop
Browse files Browse the repository at this point in the history
Release 1.4.6
  • Loading branch information
Muttley authored Oct 12, 2023
2 parents 0a65dc0 + 45fae78 commit f8f7a48
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 28 deletions.
14 changes: 7 additions & 7 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"recommendations": [
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"Gruntfuggly.todo-tree",
"lokalise.i18n-ally"
]
"recommendations": [
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"Gruntfuggly.todo-tree",
"lokalise.i18n-ally"
]
}
10 changes: 10 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v.1.4.6

### Bugfixes
* [#485] Spell Advantage talent not functioning
* [#521] Unable to add Weapon and Armor Mastery talents to character sheet

### Enhancements
* [#520] Switch Class HP roll setting to be a free text field so custom dice roll formulas can be used
* [#522] Added "All Ranged Weapons" and "All Melee Weapons" checkbox to class equipment settings for more granular options

## v.1.4.5

### Bugfixes
Expand Down
4 changes: 3 additions & 1 deletion i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ SHADOWDARK.class.armor.all.label: All Armor
SHADOWDARK.class.armor.label: Armor
SHADOWDARK.class.armor.prompt: Select Armor...
SHADOWDARK.class.fighter: Fighter
SHADOWDARK.class.hit_points.label: Hit Points
SHADOWDARK.class.hit_points.label: HP Die Roll
SHADOWDARK.class.language_choices.count.label: Choice Count
SHADOWDARK.class.language_choices.label: Language Choices
SHADOWDARK.class.language_choices.prompt: Select Language...
Expand All @@ -140,6 +140,8 @@ SHADOWDARK.class.titles.levels.from.label: From
SHADOWDARK.class.titles.levels.label: Levels
SHADOWDARK.class.titles.levels.to.label: To
SHADOWDARK.class.weapons.all.label: All Weapons
SHADOWDARK.class.weapons.all_melee.label: All Melee Weapons
SHADOWDARK.class.weapons.all_ranged.label: All Ranged Weapons
SHADOWDARK.class.weapons.label: Weapons
SHADOWDARK.class.weapons.prompt: Select Weapon...
SHADOWDARK.class.wizard: Wizard
Expand Down
15 changes: 9 additions & 6 deletions scss/sheets/items/_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@
.class-equipment-details {
grid-column: span 3;
display: grid;
grid-template-columns: 1.5fr 1.5fr 1fr;
grid-template-columns: 1fr 1fr 1fr;
align-items: baseline;
grid-column-gap: 4px;
grid-column-gap: 8px;
grid-row-gap: 8px;
}

.coins {
Expand Down Expand Up @@ -225,10 +226,12 @@
.magic-item,
.treasure {
display: grid;
grid-template-columns: 2fr 1fr;
align-items: center;
column-gap: 8px;
grid-template-columns: 2fr min-content;
background-color: var(--form-background);

&:hover {
background-color: var(--background-highlight)
}
}

.item-light {
Expand All @@ -243,7 +246,7 @@
margin: 4px;
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 4px;
column-gap: 8px;
row-gap: 8px;
align-items: start;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ export default ({ describe, it, before, after, afterEach, expect }) => {
"shortsword": "Shortsword",
"spear": "Spear",
"staff": "Staff",
"super-new-base-weapon": "Super New Base Weapon",
"warhammer": "Warhammer",
};
/* eslint-enable quote-props */
Expand Down Expand Up @@ -267,7 +266,6 @@ export default ({ describe, it, before, after, afterEach, expect }) => {
"shortsword": "Shortsword",
"spear": "Spear",
"staff": "Staff",
"super-new-base-weapon": "Super New Base Weapon",
"warhammer": "Warhammer",
};
/* eslint-enable quote-props */
Expand Down
3 changes: 2 additions & 1 deletion system/src/sheets/PlayerSheetSD.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ export default class PlayerSheetSD extends ActorSheetSD {
const effectKey = (key) ? key : c.key.split(".")[2];

// Ask for user input
let linkedName;
[c.value, linkedName] = await item._handlePredefinedEffect(effectKey);

if (c.value) {
Expand Down Expand Up @@ -333,7 +334,7 @@ export default class PlayerSheetSD extends ActorSheetSD {
// Spell Advantage requires special handling as it uses the `advantage` bons
if (e.changes.some(c => c.key === "system.bonuses.advantage")) {
// If there is no value with REPLACME, it is another type of advantage talent
if (e.changes.some(c => c.value === "REPLACME")) {
if (e.changes.some(c => c.value === "REPLACEME")) {
const key = "spellAdvantage";
item = await this._modifyEffectChangesWithInput(item, e, key);
}
Expand Down
4 changes: 2 additions & 2 deletions system/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "shadowdark",
"title": "Shadowdark RPG",
"desciption": "A system for playing the Shadowdark RPG from Arcane Library",
"version": "1.4.5",
"version": "1.4.6",
"compatibility": {
"minimum": "11",
"verified": "11"
Expand All @@ -12,7 +12,7 @@
},
"url": "https://github.com/Muttley/foundryvtt-shadowdark",
"manifest": "https://raw.githubusercontent.com/Muttley/foundryvtt-shadowdark/master/system/system.json",
"download": "https://github.com/Muttley/foundryvtt-shadowdark/releases/download/release-1.4.5/shadowdark-release-1.4.5.zip",
"download": "https://github.com/Muttley/foundryvtt-shadowdark/releases/download/release-1.4.6/shadowdark-release-1.4.6.zip",
"authors": [
{
"name": "Paul Maskelyne",
Expand Down
2 changes: 2 additions & 0 deletions system/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@
"languageChoices"
],
"allArmor": false,
"allMeleeWeapons": false,
"allRangedWeapons": false,
"allWeapons": false,
"armor": [],
"classTalentTable": "",
Expand Down
23 changes: 14 additions & 9 deletions system/templates/items/partials/class.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
<div class="class-details">
<div class="item-detail">
<label>{{localize 'SHADOWDARK.class.hit_points.label'}}</label>
<select name="system.hitPoints">
<option value="">&mdash;</option>
{{selectOptions
config.DICE
selected=system.hitPoints
localize=false
}}
</select>
<input
name="system.hitPoints"
type="text"
value="{{item.system.hitPoints}}"
/>
</div>
<div class="item-detail">
<label>{{localize "SHADOWDARK.class.talents_table.label"}}</label>
Expand Down Expand Up @@ -78,11 +75,19 @@
editable=editable
}}
</div>
<div>
<div class="item-detail">
<div class="checkbox">
<label>{{localize "SHADOWDARK.class.weapons.all.label"}}</label>
<input type="checkbox" name="system.allWeapons" {{checked system.allWeapons}}>
</div>
<div class="checkbox">
<label>{{localize "SHADOWDARK.class.weapons.all_melee.label"}}</label>
<input type="checkbox" name="system.allMeleeWeapons" {{checked system.allMeleeWeapons}}>
</div>
<div class="checkbox">
<label>{{localize "SHADOWDARK.class.weapons.all_ranged.label"}}</label>
<input type="checkbox" name="system.allRangedWeapons" {{checked system.allRangedWeapons}}>
</div>
<div class="checkbox">
<label>{{localize "SHADOWDARK.class.armor.all.label"}}</label>
<input type="checkbox" name="system.allArmor" {{checked system.allArmor}}>
Expand Down

0 comments on commit f8f7a48

Please sign in to comment.