Would love to see 5th Edition D&D heavy armor disadvantage on stealth checks shown.
I would happily have added a pull request, but I'm not sure what the best way to implement this would be. As far as I can think there are two options:
Add a minus sign next to the number for their stealth if they have disadvantage, ex: "15-"
Add a separate column for this
I took the liberty of writing and testing code that can be used to accomplish this purpose:
let stealthDisadvantage = false;
for(let item of actor.items){
if(item.data.data.stealth && item.data.data.equipped){
stealthDisadvantage = true;
}
}
You can put this code under the getActorDetails(actor) method, before the return, in the src/app/index.js file, and then add it to the return depending on which method you think would be best.
It kinda sucks butt having to loop through items, but I guess that's what we gotta do for now.
Would love to see 5th Edition D&D heavy armor disadvantage on stealth checks shown.
I would happily have added a pull request, but I'm not sure what the best way to implement this would be. As far as I can think there are two options:
I took the liberty of writing and testing code that can be used to accomplish this purpose:
You can put this code under the
getActorDetails(actor)
method, before the return, in thesrc/app/index.js
file, and then add it to the return depending on which method you think would be best.It kinda sucks butt having to loop through items, but I guess that's what we gotta do for now.