Skip to content

Commit

Permalink
work on .5
Browse files Browse the repository at this point in the history
  • Loading branch information
jopeek committed Sep 26, 2024
1 parent 00ee5b0 commit 4a1a8ee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"LOOTSHEET.TypeOfSheet":"Type of sheet:",
"LOOTSHEET.PriceModifier":"Price Modifier",
"LOOTSHEET.LootAll":"Loot All",
"LOOTSHEET.LootCoins":"Loot Coins",
"LOOTSHEET.GMSettings":"GM Settings",
"LOOTSHEET.TypeOfSheetHelp":"Loot: allows for looting of items and coins.\nMerchant: allows players to purchase items directly from the sheet.",
"LOOTSHEET.MerchantSettings":"Merchant Settings",
Expand Down
2 changes: 1 addition & 1 deletion lootsheet-simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class LootSheet5eNPC extends dnd5e.applications.actor.ActorSheet5eNPC2 {
html.find('.item-lootall').click((ev) => this._lootItem(ev, 1))

// Loot Currency
html.find('.currency-loot').click((ev) => this._lootCoins(ev))
html.find('.currency-loot').removeAttr('disabled').click((ev) => this._lootCoins(ev))

// Loot All
html
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Loot Sheet NPC 5e (Simple Version)",
"description": "This module adds an additional NPC sheet which can be used for loot containers such as chests or shopkeepers.",
"version": "12.400.4",
"version": "12.400.5",
"esmodules": [
"/lootsheet-simple.js"
],
Expand Down
15 changes: 8 additions & 7 deletions template/npc-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
<div class="right">
<div class="left">
<div class="sheet-header-buttons">
{{#ifeq lootsheettype "Loot"}} {{#if lootAll}}
<!-- <div class="charbutton">
<button type="button" class="loot-all" name="loot-all" value="1"><i class="fas fa-gem"></i> Loot All</button>
</div> -->
{{/if}} {{/ifeq}} {{#if isGM}} {{#ifeq lootsheettype "Merchant"}}
{{#if isGM}} {{#ifeq lootsheettype "Merchant"}}
<button
type="button"
class="price-modifier gold-button"
Expand Down Expand Up @@ -183,6 +179,7 @@




}}selected{{/if


Expand All @@ -192,6 +189,7 @@




}}>
{{
table.name
Expand Down Expand Up @@ -428,8 +426,8 @@
>
<i class="fas fa-minus"></i>
</a>
{{/notequal}} {{/if}}
{{#if @root.editable}}
{{/notequal}} {{/if}} {{#if @root.editable}}
{{#notequal item.type "container"}}
<input
type="text"
value="{{ item.system.quantity }}"
Expand All @@ -442,6 +440,9 @@
/>
{{else}}
<div class="item-detail">{{ item.system.quantity }}</div>
{{/notequal}}
{{else}}
<div class="item-detail">{{ item.system.quantity }}</div>
{{/if}}
{{#if @root.editable}} {{#notequal item.type "container"}}
<a
Expand Down

0 comments on commit 4a1a8ee

Please sign in to comment.