Commit 4a1a8ee 1 parent 00ee5b0 commit 4a1a8ee Copy full SHA for 4a1a8ee
File tree 4 files changed +11
-9
lines changed
4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 12
12
"LOOTSHEET.TypeOfSheet" :" Type of sheet:" ,
13
13
"LOOTSHEET.PriceModifier" :" Price Modifier" ,
14
14
"LOOTSHEET.LootAll" :" Loot All" ,
15
+ "LOOTSHEET.LootCoins" :" Loot Coins" ,
15
16
"LOOTSHEET.GMSettings" :" GM Settings" ,
16
17
"LOOTSHEET.TypeOfSheetHelp" :" Loot: allows for looting of items and coins.\n Merchant: allows players to purchase items directly from the sheet." ,
17
18
"LOOTSHEET.MerchantSettings" :" Merchant Settings" ,
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ class LootSheet5eNPC extends dnd5e.applications.actor.ActorSheet5eNPC2 {
299
299
html . find ( '.item-lootall' ) . click ( ( ev ) => this . _lootItem ( ev , 1 ) )
300
300
301
301
// Loot Currency
302
- html . find ( '.currency-loot' ) . click ( ( ev ) => this . _lootCoins ( ev ) )
302
+ html . find ( '.currency-loot' ) . removeAttr ( 'disabled' ) . click ( ( ev ) => this . _lootCoins ( ev ) )
303
303
304
304
// Loot All
305
305
html
Original file line number Diff line number Diff line change 1
1
{
2
2
"title" : " Loot Sheet NPC 5e (Simple Version)" ,
3
3
"description" : " This module adds an additional NPC sheet which can be used for loot containers such as chests or shopkeepers." ,
4
- "version" : " 12.400.4 " ,
4
+ "version" : " 12.400.5 " ,
5
5
"esmodules" : [
6
6
" /lootsheet-simple.js"
7
7
],
Original file line number Diff line number Diff line change 41
41
<div class =" right" >
42
42
<div class =" left" >
43
43
<div class =" sheet-header-buttons" >
44
- {{ #ifeq lootsheettype " Loot" }} {{ #if lootAll }}
45
- <!-- <div class="charbutton">
46
- <button type="button" class="loot-all" name="loot-all" value="1"><i class="fas fa-gem"></i> Loot All</button>
47
- </div> -->
48
- {{ /if }} {{ /ifeq }} {{ #if isGM }} {{ #ifeq lootsheettype " Merchant" }}
44
+ {{ #if isGM }} {{ #ifeq lootsheettype " Merchant" }}
49
45
<button
50
46
type =" button"
51
47
class =" price-modifier gold-button"
183
179
184
180
185
181
182
+
186
183
}} selected{{ /if
187
184
188
185
192
189
193
190
194
191
192
+
195
193
}} >
196
194
{{
197
195
table.name
428
426
>
429
427
<i class =" fas fa-minus" ></i >
430
428
</a >
431
- {{ /notequal }} {{ /if }}
432
- {{ #if @root.editable }}
429
+ {{ /notequal }} {{ /if }} {{ #if @root.editable }}
430
+ {{ #notequal item.type " container " }}
433
431
<input
434
432
type =" text"
435
433
value =" {{ item.system.quantity }} "
442
440
/>
443
441
{{ else }}
444
442
<div class =" item-detail" >{{ item.system.quantity }} </div >
443
+ {{ /notequal }}
444
+ {{ else }}
445
+ <div class =" item-detail" >{{ item.system.quantity }} </div >
445
446
{{ /if }}
446
447
{{ #if @root.editable }} {{ #notequal item.type " container" }}
447
448
<a
You can’t perform that action at this time.
0 commit comments