Skip to content

Commit

Permalink
πŸ› remove click/roll functionality from the limited character sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussa committed Jan 23, 2024
1 parent 013b7ea commit 35257d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -37,6 +37,7 @@ v4.3.1
- πŸ› Fix: removes "None" from Talent selection
- πŸ’„πŸ› UI/Fix: corrects the player character sheet cut on the bottom
- πŸ› Fix: Chargen issue when re-roll character
- πŸ› Fix: remove click/roll functionality from the limited character sheet

v4.3.0
- Improvement: any roll using the `/r` chat command now shows the result of the roll directly
Expand Down
3 changes: 3 additions & 0 deletions script/actor/vaesen-actor-sheet.js
Expand Up @@ -121,6 +121,9 @@ export class VaesenActorSheet extends ActorSheet {

activateListeners(html) {
super.activateListeners(html);
if (this.actor.limited)
return;

html.find(".item-create").click((ev) => {
this.onItemCreate(ev);
});
Expand Down
3 changes: 3 additions & 0 deletions script/sheet/player.js
Expand Up @@ -117,6 +117,9 @@ export class PlayerCharacterSheet extends VaesenActorSheet {
activateListeners(html) {
super.activateListeners(html);

if (this.actor.limited)
return;

html.find(".fav-togle").click((ev) => {
this.onFavTogle(ev);
});
Expand Down

0 comments on commit 35257d6

Please sign in to comment.