You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that you had to enter the defender's DR manually. So, I added these lines of code in attack-dialog.js to grab the targetted actor's DR and put it in the box for the defender's DR.
let target = Array.from(game.user.targets)[0];
let targetActorId = target.document.actorId;
let actor = game.actors.get(targetActorId);
defenderDR = actor.system.defenseRating;
I'm sure there's a prettier or easier way to do this, but I wanted to see if something like this could be implemented so I didn't have to stop and look at the defender's DR every time and put it in.
Thank you
The text was updated successfully, but these errors were encountered:
I noticed that you had to enter the defender's DR manually. So, I added these lines of code in attack-dialog.js to grab the targetted actor's DR and put it in the box for the defender's DR.
I'm sure there's a prettier or easier way to do this, but I wanted to see if something like this could be implemented so I didn't have to stop and look at the defender's DR every time and put it in.
Thank you
The text was updated successfully, but these errors were encountered: