diff --git a/src/lang/en.json b/src/lang/en.json index 480dc94..cdd4b7e 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -282,6 +282,8 @@ "ACKS.messages.InflictsDamage": "Inflicts damage!", "ACKS.messages.applyDamage": "Apply Damage", "ACKS.messages.applyHealing": "Apply Healing", + "ACKS.messages.applyHalf": "Apply Half Damage", + "ACKS.messages.applyDouble": "Apply 2x Damage", "ACKS.messages.Fumble": "1! Automatic Miss!", "ACKS.messages.Critical": "20! Automatic Hit!", diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index e3f9dac..3e12272 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -564,7 +564,7 @@ export class AcksActor extends Actor { } async applyDamage(amount = 0, multiplier = 1) { - amount = Math.floor(parseInt(amount) * multiplier); + amount = Math.ceil(parseInt(amount) * multiplier); const hp = this.data.data.hp; // Remaining goes to health diff --git a/src/module/chat.js b/src/module/chat.js index d4c445c..0364898 100644 --- a/src/module/chat.js +++ b/src/module/chat.js @@ -21,6 +21,18 @@ export const addChatMessageContextOptions = function(html, options) { icon: '', condition: canApply, callback: li => applyChatCardDamage(li, -1) + }, + { + name: game.i18n.localize("ACKS.messages.applyHalf"), + icon: '', + condition: canApply, + callback: li => applyChatCardDamage(li, 0.5) + }, + { + name: game.i18n.localize("ACKS.messages.applyDouble"), + icon: '', + condition: canApply, + callback: li => applyChatCardDamage(li, 2) } ); return options;