Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Updated (Enhancement Suite v0.3.10)
Browse files Browse the repository at this point in the history
Enhancement Suite
- Bug fixes
  • Loading branch information
sillvva committed Feb 20, 2019
1 parent 12fd577 commit 8fc40b6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 98 deletions.
115 changes: 19 additions & 96 deletions fvtt-enhancement-suite/fvtt-enhancement-suite.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,91 +20,11 @@
flex: 2;
}

/**
* Resizable Actor Sheet
*/
.window-app.sheet.actor-sheet {
resize: both;
overflow: auto;
min-width: 800px;
min-height: 675px;
padding-left: 160px;
}
.window-app.sheet.actor-sheet.toolbar-collapsed {
padding-left: 60px;
/*min-width: 800px;*/
}
.window-app.sheet.actor-sheet .window-content {
resize: both;
overflow: auto;
}
.dnd5e.actor-sheet {
position: relative;
}
.dnd5e.actor-sheet .sheet-sidebar img.sheet-profile {
flex: 0 1 220px;
min-height: 220px;
}
/*
.dnd5e.actor-sheet form {
position: relative;
}
.dnd5e.actor-sheet .sheet-body {
position: absolute;
top: 0;
right: 0;
left: 250px;
bottom: 0;
}
.dnd5e.actor-sheet .sheet-body .tab {
flex: 1 0 !important;
}
.dnd5e.actor-sheet .sheet-body .tab.inventory .inventory-list {
height: calc(100% - 44px) !important;
}
.dnd5e.actor-sheet .sheet-body .tab.spellbook .inventory-list {
height: calc(100% - 35px) !important;
}
.dnd5e.actor-sheet .sheet-body .tab.feats .inventory-list {
height: 100% !important;
}
.dnd5e.actor-sheet .sheet-sidebar {
display: flex;
flex-direction: column;
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 250px;
}
.dnd5e.actor-sheet .sheet-sidebar nav.sheet-tabs {
margin-top: 5px;
flex: 0 1 32px;
min-height: 32px;
}
.dnd5e.actor-sheet .sheet-sidebar .tab {
flex-grow: 1;
max-height: 432px;
overflow-y: auto;
}
.dnd5e.actor-sheet .sheet-header .charlevel .experience > input[type="text"] {
flex: 1 0;
.actor-sheet {
border-top-left-radius: 0;
}
.dnd5e.actor-sheet .sheet-header .charlevel .experience > input[type="text"] + span {
flex: none !important;
}*/
.window-app.sheet::after {
content: ' ';
position: absolute;
cursor: se-resize;
display: block;
width: 16px;
height: 16px;
bottom: 0;
right: 0;
}
.window-app.dialog .window-content {
resize: none;
.actor-sheet .window-content {
border-left: 1px solid #ccc;
}

/**
Expand All @@ -114,23 +34,25 @@
.actor-sheet-toolbar {
position: absolute;
top: 0;
left: 0;
left: -160px;
bottom: 0;
z-index: -1;
border-radius: 0 0 0 5px;
border-radius: 5px 0 0 5px;
overflow-y: auto;
width: 160px;
background: url(../../ui/denim075.png) repeat;
box-shadow: 0 0 20px #000;
}
.actor-sheet-toolbar .toolbar-header {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 30px;
border-radius: 5px 5px 0 0;
padding: 5px 8px;
padding: 7px 8px;
color: #fff;
text-shadow: 1px 1px 1px #000;
border-top-left-radius: 3px;
}
.actor-sheet-toolbar .toolbar-body {
position: absolute;
Expand All @@ -142,7 +64,8 @@
padding: 8px;
color: #fff;
text-shadow: 1px 1px 1px #000;
background-color: rgba(255,255,255,0.3);
/*background-color: rgba(255,255,255,0.3);*/
background: url(../../ui/parchment.jpg) repeat;
}
.actor-sheet-toolbar .btn {
display: inline-block;
Expand All @@ -166,20 +89,20 @@
.actor-sheet-toolbar .btn span {
margin-left: 5px;
}
.window-app.actor-sheet.toolbar-collapsed .actor-sheet-toolbar .toolbar-header,
.window-app.actor-sheet.toolbar-collapsed .actor-sheet-toolbar .toolbar-body {
.window-content.toolbar-collapsed .actor-sheet-toolbar {
width: 60px;
left: -60px;
}
.window-app.actor-sheet.toolbar-collapsed .actor-sheet-toolbar .fa,
.window-app.actor-sheet.toolbar-collapsed .actor-sheet-toolbar .far,
.window-app.actor-sheet.toolbar-collapsed .actor-sheet-toolbar .fas {
.window-content.toolbar-collapsed .actor-sheet-toolbar .fa,
.window-content.toolbar-collapsed .actor-sheet-toolbar .far,
.window-content.toolbar-collapsed .actor-sheet-toolbar .fas {
margin-right: 16px;
}
.window-app.actor-sheet.toolbar-collapsed .actor-sheet-toolbar .btn {
.window-content.toolbar-collapsed .actor-sheet-toolbar .btn {
white-space: nowrap;
overflow: hidden;
}
.window-app.actor-sheet.toolbar-collapsed .actor-sheet-toolbar .btn br {
.window-content.toolbar-collapsed .actor-sheet-toolbar .btn br {
display: none;
}
.actor-sheet-toolbar .btn-dark {
Expand Down
3 changes: 2 additions & 1 deletion fvtt-enhancement-suite/fvtt-enhancement-suite.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Enhancement Suite
* @author Matt DeKok <Sillvva>
* @version 0.3.9
* @version 0.3.10
*/

class EnhancementSuite {
Expand Down Expand Up @@ -174,6 +174,7 @@ class EnhancementSuite {
const weaponEntries = weapons.reduce((output, weapon) => {
weapon.enabled = game.macros.macros.find(macro => macro.type === 'weapon' && parseInt(macro.iid) === weapon.id);
let toHit = !isNaN(weapon.data.bonus.value) ? parseInt(weapon.data.bonus.value || 0) : 0;
if (!actor.data.data.abilities[weapon.data.ability.value]) weapon.data.ability.value = 'STR';
toHit += weapon.data.proficient.value ? Math.floor((parseInt(actor.data.data.details.level.value) + 7) / 4) : 0;
toHit += Math.floor((parseInt(actor.data.data.abilities[weapon.data.ability.value].value) - 10) / 2);
weapon.data.hit = toHit;
Expand Down
Binary file modified fvtt-enhancement-suite/fvtt-enhancement-suite.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion fvtt-enhancement-suite/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "fvtt-enhancement-suite",
"title": "FVTT Enhancement Suite",
"description": "This module will add additional quality of life features to enhance the Foundry Virtual Tabletop experience.",
"version": "0.3.9",
"version": "0.3.10",
"author": "Matt DeKok (Sillvva)",
"systems": ["dnd5e"],
"scripts": ["./scripts/math.js", "./scripts/arrive.min.js", "./scripts/macros.js","./fvtt-enhancement-suite.js"],
Expand Down

0 comments on commit 8fc40b6

Please sign in to comment.