fixe piercing blow bug

This commit is contained in:
Bodo Hüsemann
2022-08-23 18:40:44 +02:00
parent 8a1e525414
commit 046d01e662
3 changed files with 31 additions and 8 deletions
+5
View File
@@ -4,7 +4,12 @@ This is a rewrite based on the early 2e (basic) and 1e edition that also include
# Release History
## 03.02.00 (Build 22)
- target attacks calculate priercing blow correctly
## 03.01.00 (Build 21)
- added header-alt, sub1-alt, sub2-alt to custom roll template msg
- added button to post adversary fell ability into chat
+25 -7
View File
@@ -1,4 +1,4 @@
<input type="hidden" name="attr_version" value="03-00-00" />
<input type="hidden" name="attr_version" value="03-02-00" />
<input type="hidden" class="sheet-tabstoggle" name="attr_sheetTab" />
<input type="checkbox" name="attr_parsedrolls" value="1" class="hidden config-parsed-rolls" checked="checked" hidden
readonly />
@@ -1327,7 +1327,7 @@
</div>
<div class="adversary-fell-abilities">
<h1 data-i18n="fell-ability">Fell Ability</h1>
<span/>
<span />
<label class="empf-black left" data-i18n="description">Description</label>
</div>
<fieldset class="repeating_fell-abilities">
@@ -1555,7 +1555,7 @@
target,
closefit="",
closefitStr="",
keen="",
keen=10,
match=[];
act = capitalize(act);
@@ -1742,10 +1742,10 @@
// GREATNESS & FEAT DIE
// Test for piercing blow on crit success
outcome = rolltype === "combat" && (outcome === 2) ? 3 : outcome;
outcome = rolltype.startsWith("combat") && (outcome === 2) ? 3 : outcome;
clog(`Outcome after Crit: ${outcome}`);
// Piercing blow also at 10 or 8/9 if the used weapon is keen
outcome = rolltype === "combat" && (outcome === 1) && (rollFeat >= keen && rollFeat <= 10) ? 3 : outcome;
outcome = rolltype.startsWith("combat") && (outcome === 1) && (rollFeat >= keen && rollFeat <= 10) ? 3 : outcome;
clog(`Outcome after Piercing or Keen: ${outcome}`);
// count number of 6s in success, great or extraordinary success
// Count the number of sixes rolled, to report degree of success
@@ -2722,7 +2722,7 @@
}
}
if (build < 19) {
if (build < 20) {
attrs["build"] = 20;
let releaselog = {msg:""};
hlog(`Release 03.0.0 - ${new Date().toLocaleString()}`, releaselog);
@@ -2741,7 +2741,7 @@
}
}
if (build < 20) {
if (build < 21) {
attrs["build"] = 21;
let releaselog = {msg:""};
hlog(`Release 03.01.00 - ${new Date().toLocaleString()}`, releaselog);
@@ -2760,6 +2760,24 @@
});
}
}
if (build < 22) {
attrs["build"] = 22;
let releaselog = {msg:""};
hlog(`Release 03.02.00 - ${new Date().toLocaleString()}`, releaselog);
if (v.sheettab === "isPC"){
getAttrs(['releaselog'], function(values){
hlog(`
### Fixed
- Target attacks calculated "piercing blow" correctly
`, releaselog);
hlog("==============", releaselog);
attrs['releaselog'] = releaselog.msg + values['releaselog'];
if (Object.keys(attrs).length) {
setAttrs(attrs);
}
});
}
}
/*
if (build === 9) {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"title": "The One Ring 2e",
"version": "3.1.0",
"version": "3.2.0",
"html": "sheet.html",
"css": "sheet.css",
"authors": "Bodo Hüsemann, Richard W, Michael (aka Aragent) I, Paul Venner, Michael Heilemann, Stefan Unterhuber, Stuart Johnson, David Domínguez, Eric Le Bourvellec",