Skip to content

Commit

Permalink
1.4.1
Browse files Browse the repository at this point in the history
Hardened currency distribution code to prevent accidental distribution to GM if GM owns an actor
  • Loading branch information
jopeek committed Apr 20, 2020
1 parent 9b7c4dd commit 1497f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lootsheetnpc5e.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class LootSheet5eNPC extends ActorSheet5eNPC {
//console.log("Loot Sheet | player", player);
let actor = game.actors.get(player.data.character);
//console.log("Loot Sheet | actor", actor);
if (actor !== null) owners.push(actor);
if (actor !== null && (player.data.role === 1 || player.data.role === 2)) owners.push(actor);
}
}

Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lootsheetnpc5e",
"title": "Loot Sheet NPC 5e",
"description": "This module adds an additional NPC sheet which can be used for loot containers such as chests or shopkeepers.",
"version": "1.4.0",
"version": "1.4.1",
"minimumCoreVersion": "0.5.5",
"compatibleCoreVersion": "0.5.5",
"author": "Jan Ole Peek (ChalkOne)",
Expand Down

0 comments on commit 1497f21

Please sign in to comment.