-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed several issues to ensure compatibility with 0.5.5 Migrated to GitHub
- Loading branch information
0 parents
commit f6a8220
Showing
10 changed files
with
914 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
images/icon.png | ||
module-releases_template.txt | ||
workspace.code-workspace | ||
git_tags.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Jan Ole Peek | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Loot Sheet NPC 5E | ||
|
||
This module adds an additional NPC sheet which can be used for loot containers such as chests. It also allows spells to be automatically converted into spell scrolls by dragging them onto this sheet. | ||
|
||
This version was forked from Hooking's module which ended compatibility with Foundry VTT version 0.3.9 (https://gitlab.com/hooking/foundry-vtt---loot-sheet-npc). This fork should be updated by me to keep it current with Foundry VTT. | ||
|
||
### Features | ||
|
||
Allows for easy assembly of items and coins to be distributed to players. | ||
|
||
More features detailed below. | ||
|
||
##### Permissions | ||
Permissions can be set in the sheet for each player and range from no access (cannot open sheet) to observer (view sheet and contents) to owner (view sheet and add/remove items). | ||
|
||
![demo_permissions](https://thumbs.gfycat.com/CaringWildKoi-size_restricted.gif) | ||
|
||
##### Shopkeeper Sheet | ||
Can be used to create an inventory of a shopkeeper to allow players to peruse their inventory. Prices are listed next to each item. | ||
|
||
![demo_inventory](https://raw.githubusercontent.com/jopeek/fvtt-loot-sheet-npc-5e/master/images/demo_inventory.jpg) | ||
|
||
##### Price Modifier | ||
Prices can be adjusted by percentage for all owned items. | ||
|
||
![price_modifier](https://thumbs.gfycat.com/WelloffFortunateInganue-size_restricted.gif) | ||
|
||
A Biography tab is also available. | ||
|
||
![demo_biography](https://raw.githubusercontent.com/jopeek/fvtt-loot-sheet-npc-5e/master/images/demo_biography.jpg) | ||
|
||
##### Coin Distribution | ||
Any coins in the sheet can easily be split evenly across all players with owner access. The math and distribution is done for you via a single click if you're the GM. | ||
|
||
![demo_splitcoins](https://thumbs.gfycat.com/ElementaryDependentGalapagosdove-size_restricted.gif) | ||
|
||
##### Create Spell Scrolls | ||
Dragging of spells into the sheet will automatically turn them into scrolls. | ||
|
||
![demo_scrolls](https://thumbs.gfycat.com/LividAccurateFluke-size_restricted.gif) | ||
|
||
### Compatibility: | ||
- Tested with FVTT v0.5.3. | ||
|
||
### Known Issues: | ||
- Dragging an item out of the sheet does not actually remove it from the sheet's inventory. | ||
- Price Modifier currently doesn't save owned item prices properly on Tokens, so the button will not appear on tokens. Believe this to be related to a FoundryVTT issue. | ||
- Currently can't get back to original prices, especially if percentage is set to 0. | ||
|
||
### Installation Instructions | ||
|
||
To install a module, follow these instructions: | ||
|
||
1. Start FVTT and browse to the Game Modules tab in the Configuration and Setup menu | ||
2. Select the Install Module button and enter the following URL: https://raw.githubusercontent.com/jopeek/fvtt-loot-sheet-npc-5e/master/module.json | ||
3. Click Install and wait for installation to complete | ||
|
||
### Feedback | ||
|
||
If you have any suggestions or feedback, please contact me on Discord (ChalkOne#0156). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
.npc-sheet .gm-section { | ||
/* height: 48px; */ | ||
color: #000; | ||
/* font-weight: 700; */ | ||
font-size: 20px; | ||
margin-top: 0.5rem; | ||
text-align: center; | ||
border-top: 1px solid #CCC; | ||
border-bottom: 1px solid #CCC; | ||
font-family: "Nodesto", "Signika", "Palatino Linotype", serif; | ||
font-size: 20px; | ||
color: #4b4a44; | ||
font-size: 18px; | ||
} | ||
.npc-sheet .gm-header { | ||
margin-top: 0.5rem; | ||
} | ||
.npc-sheet .gm-settings .permissions-list, | ||
.npc-sheet .gm-settings .coin-list { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
} | ||
.npc-sheet .gm-settings .permission, | ||
.npc-sheet .gm-settings .denomination { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
justify-content: flex-start; | ||
height: 21px; | ||
line-height: 21px; | ||
border-bottom: 1px solid #CCC; | ||
font-size: 13px; | ||
} | ||
.npc-sheet .gm-settings .permission, | ||
.npc-sheet .gm-settings .denomination > * { | ||
flex: 1; | ||
} | ||
.npc-sheet .gm-settings .permission .permission-name { | ||
margin: 0; | ||
} | ||
.npc-sheet .gm-settings .permission .permission-proficiency { | ||
text-align: center; | ||
flex: 0 0 24px; | ||
} | ||
.npc-sheet .gm-settings .permission .permission-proficiency i.fa-circle { | ||
font-size: 10px; | ||
} | ||
.npc-sheet .gm-settings .split-coins { | ||
width: 95%; | ||
} | ||
|
||
.dnd5e.sheet .window-content form { | ||
overflow: auto !important; | ||
} | ||
|
||
img.sheet-profile { | ||
border: none; | ||
max-width: 220px; | ||
max-height: 220px; | ||
} | ||
|
||
section.sheet-sidebar.sidebar { | ||
flex: 0 0 250px; | ||
border-bottom: 2px groove #eeede0; | ||
border-right: 2px groove #eeede0; | ||
} | ||
|
||
.sheet-profile-img { | ||
text-align: center; | ||
} | ||
|
||
section.sheet-content.content { | ||
border-bottom: 2px groove #eeede0; | ||
} | ||
|
||
.dnd5e.sheet.actor .inventory-list .item .item-price, .dnd5e.sheet.actor .inventory-list .item .item-quantity { | ||
flex: 0 0 100px; | ||
color: #666; | ||
font-size: 10px; | ||
} | ||
|
||
.dnd5e.sheet .sheet-header .charbutton { | ||
flex: 0 0 200px; | ||
margin: auto; | ||
text-align: right; | ||
} | ||
|
||
button.price-modifier { | ||
width: auto; | ||
padding: 1px 10px; | ||
margin-right: 5px; | ||
} | ||
|
||
.dnd5e.sheet .sheet-navigation { | ||
margin-bottom: 15px; | ||
} | ||
|
||
input#price-modifier-percent-display { | ||
background: none; | ||
border: 1px solid transparent; | ||
width: 50px; | ||
} | ||
|
||
input#price-modifier-percent-display:hover, input#price-modifier-percent-display:focus { | ||
border: 1px solid #111; | ||
box-shadow: 0 0 8px red; | ||
} | ||
|
||
.loot-sheet-npc .sheet-profile-img { | ||
padding: 10px; | ||
} | ||
|
||
.loot-sheet-npc.sheet.actor .editor { | ||
height: 600px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.