parent
bf39f33aae
commit
89a3511c0f
|
@ -253,8 +253,8 @@
|
|||
"ACKS.messages.GetExperience": "{name} gained {value} experience points!",
|
||||
"ACKS.messages.AttackSuccess": "<b>Hits AC {result}!</b> ({bonus})",
|
||||
"ACKS.messages.AttackAscendingSuccess": "<b>Hits AC {result}!</b>",
|
||||
"ACKS.messages.AttackFailure": "<b>Attack fails</b> ({bonus})",
|
||||
"ACKS.messages.AttackAscendingFailure": "<b>Attack fails</b>",
|
||||
"ACKS.messages.AttackFailure": "<b>Attack hits AC {result} and misses</b> ({bonus})",
|
||||
"ACKS.messages.AttackAscendingFailure": "<b>Attack hits AC {result} and misses</b>",
|
||||
"ACKS.messages.InflictsDamage": "Inflicts damage!",
|
||||
"ACKS.messages.applyDamage": "Apply Damage",
|
||||
"ACKS.messages.applyHealing": "Apply Healing",
|
||||
|
|
|
@ -393,7 +393,7 @@ export class AcksActor extends Actor {
|
|||
|
||||
rollAttack(attData, options = {}) {
|
||||
const data = this.data.data;
|
||||
const rollParts = ["1d20"];
|
||||
const rollParts = ["1d20x="];
|
||||
const dmgParts = [];
|
||||
let label = game.i18n.format("ACKS.roll.attacks", {
|
||||
name: this.data.name,
|
||||
|
@ -593,7 +593,7 @@ export class AcksActor extends Actor {
|
|||
}
|
||||
// Compute AC
|
||||
let baseAc = 9;
|
||||
let baseAac = 10;
|
||||
let baseAac = 0;
|
||||
let AcShield = 0;
|
||||
let AacShield = 0;
|
||||
const data = this.data.data;
|
||||
|
|
|
@ -129,18 +129,19 @@ export class AcksDice {
|
|||
result.target = data.roll.thac0;
|
||||
|
||||
const targetAc = data.roll.target ? data.roll.target.actor.data.data.ac.value : 9;
|
||||
const targetAac = data.roll.target ? data.roll.target.actor.data.data.aac.value : 0;
|
||||
const targetAac = data.roll.target ? data.roll.target.actor.data.data.aac.value : 10;
|
||||
result.victim = data.roll.target ? data.roll.target.actor.name : null;
|
||||
|
||||
if (game.settings.get("acks", "ascendingAC")) {
|
||||
if (roll.total < targetAac) {
|
||||
if (roll.total < targetAac + 10) {
|
||||
result.details = game.i18n.format("ACKS.messages.AttackAscendingFailure", {
|
||||
result: roll.total - 10,
|
||||
bonus: result.target,
|
||||
});
|
||||
return result;
|
||||
}
|
||||
result.details = game.i18n.format("ACKS.messages.AttackAscendingSuccess", {
|
||||
result: roll.total,
|
||||
result: roll.total - 10,
|
||||
});
|
||||
result.isSuccess = true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue