Skip to content

Commit 0d8d388

Browse files
committed
3.2.5
1 parent d3f31a6 commit 0d8d388

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+8050
-17727
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ node_modules/
99
docs/
1010
wiki/
1111
.nyc_output/
12+
.DS_Store

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Jan Ole Peek, Daniel Böttner
3+
Copyright (c) 2020 Jan Ole Peek
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+10-20
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
[![Github All Releases](https://img.shields.io/github/downloads/jopeek/fvtt-loot-sheet-npc-5e/total.svg)]() [![Donate](https://img.shields.io/badge/Donate-BuyMeACoffee-green.svg)](https://www.buymeacoffee.com/ChalkOne)
2-
# Loot Sheet NPC 5E #
3-
4-
This module adds an additional NPC sheet which can be used to create lootable NPCs or merchant NPCs.
5-
2+
# Loot Sheet NPC 5E
63

4+
This module adds an additional NPC sheet which can be used for loot containers such as chests or merchants in your game. It has a permission system that allows observers to make loot or ourchase actions which will automatically process the item transaction, including inventory moves and currency changes.
75

86
A loot sheet allows players with the right permissions to loot items from it, while a merchant sheet lets them purchase the items in exchange for currency. Merchant sheets can also be populated via rolls from rollable tables. This allows a GM to quickly create varied inventories for their merchants. A couple of rollable tables are included and can be imported via standard rollable table methods. It is also compatible with our rollable table collections such as https://foundryvtt.com/packages/foundry_community_tables.
97

10-
## Features
8+
### History
119

12-
Allows for easy assembly of items and coins to be distributed to players.
10+
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.
1311

14-
More features detailed below.
12+
I will only maintain a DND5e compatible version of this mod, but I encourage forks for other systems as well as accept pull requests and contributions for this one. I'm very busy and appreciate all current and future contributors!
1513

16-
## Permissions
17-
LootSheetNPC5e comes with a permission system that allows observers to interact with the sheet.
14+
### Features
1815

19-
Find details in the [Wiki/Permissions](https://github.com/DanielBoettner/fvtt-loot-sheet-npc-5e/wiki/Permissions)
16+
Allows for easy assembly of items and coins to be distributed to players.
2017

21-
### Loot
22-
To allow players to loot items. From a sheet the players need *observer*
23-
loot or ourchase actions which will automatically process the item transaction, including inventory moves and currency changes.
18+
More features detailed below.
2419

20+
##### Permissions
2521
Permissions can be set in the sheet for each player and range from no access (cannot open sheet) to observer (view sheet and contents and utilize loot or buy buttons) to owner (view sheet and add/remove items and configure sheet).
2622

2723
![demo_permissions](https://thumbs.gfycat.com/CaringWildKoi-size_restricted.gif)
2824

29-
## Merchant /Shopkeeper Sheet
25+
##### Shopkeeper Sheet
3026
Can be used to create an inventory of a shopkeeper to allow players to peruse their inventory. Prices are listed next to each item.
3127

3228
![demo_inventory](https://raw.githubusercontent.com/jopeek/fvtt-loot-sheet-npc-5e/master/images/demo_inventory.jpg)
@@ -61,12 +57,6 @@ To install a module, follow these instructions:
6157
2. Select the Install Module button and enter the following URL: https://raw.githubusercontent.com/jopeek/fvtt-loot-sheet-npc-5e/master/module.json
6258
3. Click Install and wait for installation to complete
6359

64-
### History
65-
66-
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.
67-
68-
I will only maintain a DND5e compatible version of this mod, but I encourage forks for other systems as well as accept pull requests and contributions for this one. I'm very busy and appreciate all current and future contributors!
69-
7060
### Feedback
7161

7262
If you have any suggestions or feedback, please submit an issue on GitHub or contact me on Discord (ChalkOne#0156).

changelog.md

-21
This file was deleted.

contribute.md

-1
This file was deleted.

css/lootsheetnpc5e.css

+253
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
2+
3+
.loot-sheet-npc .gm-section {
4+
/* height: 48px; */
5+
color: #000;
6+
/* font-weight: 700; */
7+
font-size: 20px;
8+
margin-top: 0.5rem;
9+
text-align: center;
10+
border-top: 1px solid #CCC;
11+
border-bottom: 1px solid #CCC;
12+
font-family: "Nodesto", "Signika", "Palatino Linotype", serif;
13+
font-size: 20px;
14+
color: #4b4a44;
15+
font-size: 18px;
16+
}
17+
18+
.loot-sheet-npc .gm-header {
19+
margin-top: 0.5rem;
20+
}
21+
22+
.loot-sheet-npc .inventory-filters .item-controls {
23+
flex: 0 0 20px;
24+
display: flex;
25+
flex-direction: row;
26+
flex-wrap: wrap;
27+
justify-content: flex-start;
28+
justify-content: flex-end;
29+
}
30+
31+
.loot-sheet-npc .inventory-filters .item-controls a, .loot-sheet-npc.sheet .items-list .item-controls a {
32+
flex: 0 0 22px;
33+
font-size: 12px;
34+
text-align: center;
35+
color: #7a7971;
36+
}
37+
38+
.loot-sheet-npc .gm-settings .permissions-list,
39+
.loot-sheet-npc .gm-settings .coin-list {
40+
margin: 0;
41+
padding: 0;
42+
list-style: none;
43+
}
44+
45+
.loot-sheet-npc .gm-settings .sheet-types,
46+
.loot-sheet-npc .gm-settings .merchant-settings {
47+
margin-right: 10px;
48+
}
49+
50+
.loot-sheet-npc .gm-settings .merchant-settings .flexrow {
51+
border-bottom: 1px solid #CCC;
52+
margin-bottom: 5px;
53+
}
54+
55+
.loot-sheet-npc .gm-settings .merchant-settings .flexrow {
56+
border-bottom: 1px solid #CCC;
57+
margin-bottom: 5px;
58+
}
59+
60+
.loot-sheet-npc input[type="text"], .loot-sheet-npc input[type="number"], .loot-sheet-npc select {
61+
height: calc(100% - 2px);
62+
border: 1px solid #7a7971;
63+
background: rgba(0, 0, 0, 0.05);
64+
color: #000000;
65+
text-overflow: ellipsis;
66+
}
67+
68+
.loot-sheet-npc select.sheet-rolltable {
69+
max-width: 125px;
70+
}
71+
72+
.loot-sheet-npc .gm-settings .merchant-settings .flexrow h4 {
73+
margin: 2px 0 0 0;
74+
}
75+
76+
.loot-sheet-npc .gm-settings .merchant-settings {
77+
margin-left: 24px;
78+
}
79+
80+
.loot-sheet-npc .gm-settings .coins-list {
81+
padding-left: 24px;
82+
}
83+
84+
.loot-sheet-npc .gm-settings h4.sheet-name {
85+
flex: 1;
86+
margin: 0 0 0 24px;
87+
line-height: 22px;
88+
}
89+
90+
.loot-sheet-npc .gm-settings .permission,
91+
.loot-sheet-npc .gm-settings .denomination {
92+
display: flex;
93+
flex-direction: row;
94+
flex-wrap: wrap;
95+
justify-content: flex-start;
96+
height: 21px;
97+
line-height: 21px;
98+
border-bottom: 1px solid #CCC;
99+
font-size: 13px;
100+
}
101+
102+
.loot-sheet-npc .gm-settings .sheet-type-info,
103+
.loot-sheet-npc .gm-settings .permission-info,
104+
.loot-sheet-npc .gm-settings .merchant-settings-info,
105+
.itemsonce-info {
106+
color: #7a7971;
107+
margin: 6px 6px 6px 24px;
108+
display: none;
109+
}
110+
111+
.loot-sheet-npc .gm-settings .help {
112+
color: #7a7971;
113+
font-size: 13px;
114+
}
115+
116+
.loot-sheet-npc .gm-settings .permission,
117+
.loot-sheet-npc .gm-settings .denomination>* {
118+
flex: 1;
119+
flex-wrap: inherit;
120+
height: auto;
121+
}
122+
123+
.loot-sheet-npc .gm-settings .permission .permission-name {
124+
margin: 0;
125+
}
126+
127+
.loot-sheet-npc .gm-settings .permission .permission-proficiency {
128+
text-align: center;
129+
flex: 0 0 24px;
130+
}
131+
132+
.loot-sheet-npc .gm-settings .permission .permission-proficiency i.fa-circle {
133+
font-size: 10px;
134+
}
135+
136+
.loot-sheet-npc .gm-settings .split-coins {
137+
width: 95%;
138+
}
139+
140+
.loot-sheet-npc.sheet .window-content form {
141+
overflow-y: auto !important;
142+
}
143+
144+
img.sheet-profile {
145+
border: none;
146+
max-width: 220px;
147+
max-height: 220px;
148+
}
149+
150+
.loot-sheet-npc.sheet.actor .inventory-filters .currency span {
151+
flex: 0 0 105px;
152+
white-space: nowrap;
153+
}
154+
155+
.loot-sheet-npc.sheet.actor .inventory-filters .currency input[type="text"] {
156+
width: 40px;
157+
}
158+
159+
.currency.inventory span span {
160+
width: 40px;
161+
text-align: center;
162+
margin-left: 8px;
163+
white-space: nowrap;
164+
}
165+
166+
.loot-sheet-npc.sheet.actor .inventory-filters .currency label {
167+
white-space: nowrap;
168+
}
169+
170+
section.sheet-sidebar.sidebar {
171+
flex: 0 0 250px;
172+
border-bottom: 2px groove #eeede0;
173+
border-right: 2px groove #eeede0;
174+
}
175+
176+
.sheet-profile-img {
177+
text-align: center;
178+
}
179+
180+
section.sheet-content.content {
181+
border-bottom: 2px groove #eeede0;
182+
}
183+
184+
.loot-sheet-npc.sheet.actor .inventory-list .item .item-price,
185+
.loot-sheet-npc.sheet.actor .inventory-list .item .item-quantity,
186+
.loot-sheet-npc.sheet.actor .inventory-list .item .item-weight {
187+
flex: 0 0 75px;
188+
color: #666;
189+
font-size: 10px;
190+
}
191+
192+
.loot-sheet-npc.sheet.actor .inventory-list .item .item-controls {
193+
flex: 0 0 100px !important;
194+
display: flex;
195+
flex-direction: row;
196+
flex-wrap: wrap;
197+
justify-content: flex-start;
198+
justify-content: flex-end;
199+
}
200+
201+
.loot-sheet-npc.sheet .sheet-header .charbutton {
202+
flex: 0 0 200px;
203+
margin: auto;
204+
text-align: right;
205+
}
206+
207+
button.price-modifier {
208+
width: auto;
209+
padding: 1px 10px;
210+
margin-right: 5px;
211+
}
212+
213+
.loot-sheet-npc.sheet .sheet-navigation {
214+
margin-bottom: 15px;
215+
}
216+
217+
input#price-modifier-percent-display {
218+
background: none;
219+
border: 1px solid transparent;
220+
width: 50px;
221+
}
222+
223+
input#price-modifier-percent-display:hover,
224+
input#price-modifier-percent-display:focus,
225+
input#quantity:hover,
226+
input#quantity:focus {
227+
border: 1px solid #111;
228+
box-shadow: 0 0 8px red;
229+
}
230+
231+
.loot-sheet-npc .sheet-profile-img {
232+
padding: 10px;
233+
}
234+
235+
.loot-sheet-npc.sheet.actor .editor {
236+
height: 600px;
237+
}
238+
239+
.loot-sheet-npc.sheet .sheet-header h1 input {
240+
margin: 0px;
241+
}
242+
243+
.loot-sheet-npc.sheet.actor .inventory-list .inventory-header .item-controls a.item-create {
244+
flex: initial;
245+
}
246+
247+
.loot-sheet-npc li.item.flexrow.inventory-header {
248+
padding: 8px 8px 0 0;
249+
}
250+
251+
.loot-sheet-npc .currency input[type="number"] {
252+
max-width: 3rem;
253+
}

jsdoc.json

-33
This file was deleted.

0 commit comments

Comments
 (0)