diff --git a/The One Ring 2e/release-notes.md b/The One Ring 2e/release-notes.md index e4b91f8a3de1..e508800e36b5 100644 --- a/The One Ring 2e/release-notes.md +++ b/The One Ring 2e/release-notes.md @@ -4,6 +4,10 @@ This is a rewrite based on the early 2e (basic) and 1e edition that also include # Release History +## 03.13.00 (Build 35) + +- added "Taint" of items that will add to shadow / scars and leads to miserable / ill-favoured rolls when >= hope / hope_max + ## 03.12.00 (Build 34) - added "Favoured" modifier for pc combat proficiencies to allow handling of specific cultural virtues (e.g. Hobbit Cultural Virtue Sure At The Mark) diff --git a/The One Ring 2e/sheet.html b/The One Ring 2e/sheet.html index d43c6190b40a..95e11d103d70 100644 --- a/The One Ring 2e/sheet.html +++ b/The One Ring 2e/sheet.html @@ -1,4 +1,4 @@ - + @@ -238,8 +238,12 @@

Heart

-
- +
+ + + +
+ @@ -1719,7 +1723,7 @@

Notes

// ATTRIBUTES const attrs = await asw.getAttrs([ - "favorill", "weary", "miserable", "hope", "shadow", "shadowscar", "favourill_id", + "favorill", "weary", "miserable", "hope", "shadow", "shadowscar", "taint", "favourill_id", "stanceattack_active", "stanceattackbonus", "stancedamagebonus", "whisper" ]); let wearyStr = (attrs.weary == "on" || attrs.weary == 1) ? "{{weary=Weary}}" : "", @@ -1727,7 +1731,7 @@

Notes

miserableStr = (attrs.miserable == "on" || attrs.miserable == 1) ? "{{miserable=Miserable}}" : "", miserable = (attrs.miserable == "on" || attrs.miserable == 1) ? 1 : 0, hope = int(attrs.hope), - shadow = int(attrs.shadow) + int(attrs.shadowscars), + shadow = int(attrs.shadow) + int(attrs.shadowscars) + int(attrs.taint), favourill_id = int(attrs.favourill_id), stanceAttackActive = int(attrs.stanceattack_active), stanceAttackBonus = int(attrs.stanceattackbonus), @@ -2089,34 +2093,35 @@

Notes

}); // calc miserable and favourill_id - on("change:hope change:shadow change:shadowscars change:favorill sheet:opened", () => { - getAttrs(["hope", "hope_max", "shadow", "shadowscar", "favourill_id", "favorill", "sheetTab" ], (values) => { + on("change:hope change:shadow change:shadowscars change:taint change:favorill sheet:opened", () => { + getAttrs(["hope", "hope_max", "shadow", "shadowscar", "taint", "favourill_id", "favorill", "sheetTab" ], (values) => { if (values.sheetTab ==="isPC"){ const hope = int(values.hope), hope_max = int(values.hope_max), shadow = int(values.shadow), scars = int(values.shadowscar), + taint = int(values.taint), favorill = values.favorill, favourill_id = int(values.favourill_id), maxshadow = hope_max - scars; // miserable - if ( (shadow + scars) >= hope ) { + if ( (shadow + scars + taint) >= hope ) { setAttrs({ miserable: 1, }); - clog(`Set miserable based on shadow score: shadow ${shadow} + scars ${scars} higher than current hope ${hope}.`); + clog(`Set miserable based on shadow score: shadow ${shadow} + scars ${scars} + taint ${taint} higher than current hope ${hope}.`); } else { setAttrs({ miserable: 0, }); }; // favourill - if ( (shadow + scars) >= hope_max || favorill === "{2t[feat]}kl1") { + if ( (shadow + scars + taint) >= hope_max || favorill === "{2t[feat]}kl1") { setAttrs({ favourill_id: 0, favorill : "{2t[feat]}kl1" // to make table rolls consistent }); - clog(`Set illfavoured rolls global state or shadow score: shadow ${shadow} + scars ${scars} higher than maximum hope ${hope_max}.`); + clog(`Set illfavoured rolls global state or shadow score: shadow ${shadow} + scars ${scars} + taint ${taint} higher than maximum hope ${hope_max}.`); } else if (favorill === "{1t[feat]}"){ setAttrs({ favourill_id: 1, @@ -3204,6 +3209,24 @@

Notes

}); } } + if (build < 35) { + attrs["build"] = 35; + let releaselog = {msg:""}; + hlog(`Release 03.13.00 - ${new Date().toLocaleString()}`, releaselog); + if (v.sheettab === "isPC"){ + getAttrs(['releaselog'], function(values){ + hlog(` +### New +- added "Taint" of items that will add to shadow / scars and leads to miserable / ill-favoured state when >= hope / hope_max + `, releaselog); + hlog("==============", releaselog); + attrs['releaselog'] = releaselog.msg + values['releaselog']; + if (Object.keys(attrs).length) { + setAttrs(attrs); + } + }); + } + } /* if (build === 9) { attrs["build"] = 8; diff --git a/The One Ring 2e/sheet.json b/The One Ring 2e/sheet.json index e2ba94d1642c..bbe32bd424fa 100644 --- a/The One Ring 2e/sheet.json +++ b/The One Ring 2e/sheet.json @@ -1,6 +1,6 @@ { "title": "The One Ring 2e", - "version": "3.12.0", + "version": "3.13.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", diff --git a/The One Ring 2e/sheet.png b/The One Ring 2e/sheet.png index e5fe77921811..49d41b11255b 100644 Binary files a/The One Ring 2e/sheet.png and b/The One Ring 2e/sheet.png differ diff --git a/The One Ring 2e/translation.json b/The One Ring 2e/translation.json index 4e154d650f26..41aff72570f0 100644 --- a/The One Ring 2e/translation.json +++ b/The One Ring 2e/translation.json @@ -264,5 +264,7 @@ "daunted": "Daunted", "daunted-title": "If you are daunted, you can't spend hope!", "name": "Name", - "darkmode": "Dark Mode" + "darkmode": "Dark Mode", + "taint": "Taint", + "taint-title": "Taint of items adds to the shadow points of the character" } \ No newline at end of file