Skip to content

Commit 9a764a8

Browse files
committed
bugfix issue #24
1 parent 4fbccbb commit 9a764a8

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ This system provides character sheets and items for your play, if you would lik
3434
[GNU General Public License v3.0](https://choosealicense.com/licenses/gpl-3.0/)
3535

3636
## Release Notes
37+
v2.2.16
38+
- BUGFIX: [#24 Chat Display Defaults all Weapons to "Close Combat"](https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt/issues/24)
39+
40+
3741
v2.2.15
3842
- Mac font size adjustment on character sheet
3943

Diff for: less/common.less

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33

44
// foundry overrides
5+
6+
57
h2.module-header{
68
border-bottom: 1px solid @primary-color;
79
}
@@ -18,8 +20,10 @@ h2.module-header{
1820
}
1921
}
2022

23+
24+
//sheet common elements
2125
.vaesen{
22-
//sheet common elements
26+
2327
.name{
2428
text-align: center;
2529
}
@@ -144,6 +148,7 @@ h2.module-header{
144148

145149
}
146150

151+
147152
.vaesen .npc .attribute input,
148153
.vaesen .player .attribute input{
149154
text-align: center;

Diff for: model/tab/player-note.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="flex row full">
22
<div class="flex column heavy-border relationships">
3-
<b class="title" style="width: 85%; margin: auto;">{{localize "HEADER.RELATIONSHIPS"}}</b>
3+
<b class="title" style="width: 89%; margin: auto;">{{localize "HEADER.RELATIONSHIPS"}}</b>
44
<div class="relationships flex column margin">
55
<div class="relationship flex row center light-border">
66
<b class="name">{{localize "RELATIONSHIP.WT"}}</b>

Diff for: script/sheet/itemSheet.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export class vaesenItemSheet extends ItemSheet {
3131

3232
_getHeaderButtons() {
3333
let buttons = super._getHeaderButtons();
34+
console.log(this.item.data);
3435
buttons = [
3536
{
3637
label: "Display",

Diff for: script/util/chat.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,10 @@ export const buildChatCard = function(type, data){
200200
};
201201
break;
202202
case 'weapon':
203-
204203
let skill = '';
205-
if(data.data.skill = "closeCombat"){
204+
if(data.data.skill == "closeCombat"){
206205
skill = game.i18n.localize("SKILL.CLOSE_COMBAT");
207-
} else if (data.data.skill = "rangedCombat"){
206+
} else if (data.data.skill == "rangedCombat"){
208207
skill = game.i18n.localize("SKILL.RANGED_COMBAT");
209208
} else {
210209
skill = game.i18n.localize("SKILL.FORCE");

Diff for: system.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "vaesen",
44
"title": "Vaesen",
55
"description": "Nordic horror role-playing",
6-
"version": "2.2.15",
6+
"version": "2.2.16",
77
"minimumCoreVersion": "0.8.6",
88
"compatibleCoreVersion": "0.8.9",
99
"templateVersion": 2,

0 commit comments

Comments
 (0)