Skip to content

Commit

Permalink
bugfix issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
DrOgres committed Oct 9, 2021
1 parent 4fbccbb commit 9a764a8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ This system provides character sheets and items for your play, if you would lik
[GNU General Public License v3.0](https://choosealicense.com/licenses/gpl-3.0/)

## Release Notes
v2.2.16
- BUGFIX: [#24 Chat Display Defaults all Weapons to "Close Combat"](https://github.com/fvtt-fria-ligan/vaesen-foundry-vtt/issues/24)


v2.2.15
- Mac font size adjustment on character sheet

Expand Down
7 changes: 6 additions & 1 deletion less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


// foundry overrides


h2.module-header{
border-bottom: 1px solid @primary-color;
}
Expand All @@ -18,8 +20,10 @@ h2.module-header{
}
}


//sheet common elements
.vaesen{
//sheet common elements

.name{
text-align: center;
}
Expand Down Expand Up @@ -144,6 +148,7 @@ h2.module-header{

}


.vaesen .npc .attribute input,
.vaesen .player .attribute input{
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion model/tab/player-note.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="flex row full">
<div class="flex column heavy-border relationships">
<b class="title" style="width: 85%; margin: auto;">{{localize "HEADER.RELATIONSHIPS"}}</b>
<b class="title" style="width: 89%; margin: auto;">{{localize "HEADER.RELATIONSHIPS"}}</b>
<div class="relationships flex column margin">
<div class="relationship flex row center light-border">
<b class="name">{{localize "RELATIONSHIP.WT"}}</b>
Expand Down
1 change: 1 addition & 0 deletions script/sheet/itemSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class vaesenItemSheet extends ItemSheet {

_getHeaderButtons() {
let buttons = super._getHeaderButtons();
console.log(this.item.data);
buttons = [
{
label: "Display",
Expand Down
5 changes: 2 additions & 3 deletions script/util/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,10 @@ export const buildChatCard = function(type, data){
};
break;
case 'weapon':

let skill = '';
if(data.data.skill = "closeCombat"){
if(data.data.skill == "closeCombat"){
skill = game.i18n.localize("SKILL.CLOSE_COMBAT");
} else if (data.data.skill = "rangedCombat"){
} else if (data.data.skill == "rangedCombat"){
skill = game.i18n.localize("SKILL.RANGED_COMBAT");
} else {
skill = game.i18n.localize("SKILL.FORCE");
Expand Down
2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "vaesen",
"title": "Vaesen",
"description": "Nordic horror role-playing",
"version": "2.2.15",
"version": "2.2.16",
"minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "0.8.9",
"templateVersion": 2,
Expand Down

0 comments on commit 9a764a8

Please sign in to comment.