-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chat-card-damage #69
chat-card-damage #69
Conversation
setting added
@@ -82,4 +82,17 @@ export const registerSettings = function () { | |||
config: true, | |||
onChange: _ => window.location.reload() | |||
}); | |||
game.settings.register('ose', 'applyDamageOption', { | |||
name: game.i18n.localize('OSE.Setting.applyDamageOption'), | |||
hint: game.i18n.localize('OSE.Setting.applyDamageOptionHint'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm I'll have to write some strings for these
canvas.tokens.controlled.forEach(async t=>{ | ||
if(game.user.isGM) return await t.actor.applyDamage(amount,multiplier) | ||
}) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error, missing }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you'd like for me to help complete your contribution, please give the word. I have a commit fixing:
- missing closing bracket
- new i18n strings for the new setting
New PR in #70 |
Adds a setting allowing gm to select the target of damage applied via chat message roll result.
Selecting 'targeted' applies damage to the targeted token actors.
Selecting 'selected' applies damage to the selected token actors