From 40e0f4fd0301bb62d6aed9ba48201614b39e4b94 Mon Sep 17 00:00:00 2001 From: The Happy Anarchist Date: Thu, 24 Sep 2020 21:37:22 -1000 Subject: [PATCH] Sneaking in Auto-hit and Auto-miss for non-HFH option to 0.5.1 release --- .gitignore | 1 + Changelog.txt | 10 ++++++++++ package/acks-v0.5.1.zip | Bin 1026802 -> 1026924 bytes src/lang/en.json | 2 ++ src/module/dice.js | 35 +++++++++++++++++++++++++++++++---- 5 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7976a35 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +acks/ \ No newline at end of file diff --git a/Changelog.txt b/Changelog.txt index b230126..31a22f1 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -26,3 +26,13 @@ Removed DAC field from armor items BUG FIXES: Fixed a rounding error present in the OSE code Fixed some areas where AC was not shown correctly in OSE code + +v0.5.1 HFH Options / Core Toggle +MINOR CHANGES: +Added toggle for Exploding 20s and BHR +Implemented auto-miss on 1 and auto-hit on 20 for Core Rules (non-HFH) + +BUG FIXES: +Monster Saves pre-fill not present when monster is new +Negative Con mod could make HD roll negative (now floored at 1) +Negative Str mod could make damage negative (now minimum 1) \ No newline at end of file diff --git a/package/acks-v0.5.1.zip b/package/acks-v0.5.1.zip index 751e54a609a43da06af63b3df6b23bf99a5009ba..b6bc9d251c62e4bef64d3f320c60b77934bdc972 100644 GIT binary patch delta 10149 zcmZvh2Rv2(|HtpOGwwlF_7=)2l)cHytZW(CdlT2**?g>&vO-c;nNdkm$sS24k(3oO z@;}%4`u)DY9{+lr$Mc@|`}KLhKkxVFbIv{PSsRx7J|ai1r-e^IgTnnYsD4NuM~`Pv z9hFTVmraj`54@&qdVJ#7ur01=1|L2M;DZo8h~R@5K1kr>7<`bz2N`^jHxz5A z01F192RjlN2&++bPG9YAilI zvOV_1N5!Y)amCS%%t8#-Wjdx4#eDgDG(xmy39^2!wy)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MRLW6+=o;03=GLW}iHJWTlNgd?0Tg2tx+>K6f;Y)3UZ!s8VO zq2~)0{46VQya@W~_8z1thT;ubfwIMbEGo+Y=D-MsLpnTquohCW z9ho2D|05K^fgJ!Qxj=^&g%W6h442>qFN%Z%davRFUM+!kR#E#yW^oC02y~{cz@-Kw zI0iBB>_EIyKpJIW2dk`Pu?VV_LdLzQW5MfDvrPGB%uX3~rFR41it| zOu`K18W<0!kLm`%2>g5FjJtm5H@FP)%d-!&VFWQ{kY8fgLq?k`)I9r;a}?_tc$6@L z?Bx(G)9sMvQVwvik@&!jqk8X!3jvu2WDx++gLCCjojE?=S2DhN;Pd;pW zH~^i}#w6iXUD9@5u*p=O3sAP4m@020-033Fit9WfBs*Z+`M6#(+=(fE&0Uz>;+N)vG%`dbA3hre^d0Ce|%m0mJ$ diff --git a/src/lang/en.json b/src/lang/en.json index f263a8f..7a5c3f5 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -272,6 +272,8 @@ "ACKS.messages.InflictsDamage": "Inflicts damage!", "ACKS.messages.applyDamage": "Apply Damage", "ACKS.messages.applyHealing": "Apply Healing", + "ACKS.messages.Fumble": "1! Automatic Miss!", + "ACKS.messages.Critical": "20! Automatic Hit!", "ACKS.colors.green": "Green", "ACKS.colors.red": "Red", diff --git a/src/module/dice.js b/src/module/dice.js index dbdc777..2a9b8bc 100644 --- a/src/module/dice.js +++ b/src/module/dice.js @@ -141,8 +141,29 @@ export class AcksDice { : 0; result.victim = data.roll.target ? data.roll.target.data.name : null; + const hfh = game.settings.get("acks", "exploding20s") + const die = roll.dice[0].total + if (game.settings.get("acks", "ascendingAC")) { - if (roll.total < targetAac + 10) { + if (die == 1 && !hfh) { + result.details = game.i18n.format( + "ACKS.messages.Fumble", + { + result: roll.total, + bonus: result.target, + } + ); + return result; + } else if (roll.total < targetAac + 10 && die < 20) { + result.details = game.i18n.format( + "ACKS.messages.AttackAscendingFailure", + { + result: roll.total - 10, + bonus: result.target, + } + ); + return result; + } else if (roll.total < targetAac + 10 && hfh) { result.details = game.i18n.format( "ACKS.messages.AttackAscendingFailure", { @@ -152,9 +173,15 @@ export class AcksDice { ); return result; } - result.details = game.i18n.format("ACKS.messages.AttackAscendingSuccess", { - result: roll.total - 10, - }); + if (!hfh && die == 20) { + result.details = game.i18n.format("ACKS.messages.Critical", { + result: roll.total, + }); + } else { + result.details = game.i18n.format("ACKS.messages.AttackAscendingSuccess", { + result: roll.total - 10, + }); + } result.isSuccess = true; } else { // B/X Historic THAC0 Calculation