From e92b2deacfe5255e58b1843c2c43d14148e8d9b9 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Wed, 12 Jun 2024 11:16:46 +0200 Subject: [PATCH] Various enhancements --- modules/dark-stars-actor-sheet.js | 11 ++-- modules/dark-stars-actor.js | 48 ++++++++++++++---- packs/aldebaran/{000186.log => 000210.log} | 0 packs/aldebaran/CURRENT | 2 +- packs/aldebaran/LOG | 14 ++--- packs/aldebaran/LOG.old | 14 ++--- .../{MANIFEST-000184 => MANIFEST-000208} | Bin 177 -> 177 bytes .../{000179.log => 000203.log} | 0 packs/beyondtheblacksea/CURRENT | 2 +- packs/beyondtheblacksea/LOG | 14 ++--- packs/beyondtheblacksea/LOG.old | 14 ++--- .../{MANIFEST-000177 => MANIFEST-000201} | Bin 177 -> 177 bytes packs/conditions/{000232.log => 000256.log} | 0 packs/conditions/CURRENT | 2 +- packs/conditions/LOG | 14 ++--- packs/conditions/LOG.old | 14 ++--- packs/conditions/MANIFEST-000230 | Bin 69 -> 0 bytes packs/conditions/MANIFEST-000254 | Bin 0 -> 69 bytes packs/currency/{000232.log => 000256.log} | 0 packs/currency/CURRENT | 2 +- packs/currency/LOG | 14 ++--- packs/currency/LOG.old | 14 ++--- packs/currency/MANIFEST-000230 | Bin 69 -> 0 bytes packs/currency/MANIFEST-000254 | Bin 0 -> 69 bytes packs/darkstars-sf/{000044.log => 000068.log} | 0 packs/darkstars-sf/CURRENT | 2 +- packs/darkstars-sf/LOG | 16 +++--- packs/darkstars-sf/LOG.old | 16 +++--- packs/darkstars-sf/MANIFEST-000042 | Bin 139 -> 0 bytes packs/darkstars-sf/MANIFEST-000066 | Bin 0 -> 139 bytes packs/nightborough/{000199.log => 000223.log} | 0 packs/nightborough/CURRENT | 2 +- packs/nightborough/LOG | 14 ++--- packs/nightborough/LOG.old | 14 ++--- .../{MANIFEST-000197 => MANIFEST-000221} | Bin 178 -> 178 bytes packs/sprawl/{000036.log => 000060.log} | 0 packs/sprawl/CURRENT | 2 +- packs/sprawl/LOG | 16 +++--- packs/sprawl/LOG.old | 16 +++--- packs/sprawl/MANIFEST-000034 | Bin 139 -> 0 bytes packs/sprawl/MANIFEST-000058 | Bin 0 -> 139 bytes packs/tables/000004.log | 0 packs/tables/000005.ldb | Bin 0 -> 2739 bytes packs/tables/CURRENT | 1 + packs/tables/LOCK | 0 packs/tables/LOG | 5 ++ packs/tables/MANIFEST-000002 | Bin 0 -> 161 bytes system.json | 21 ++++++-- template.json | 4 +- templates/actors/actor-sheet.hbs | 16 +++--- templates/apps/roll-dialog-generic.hbs | 2 +- templates/chat/chat-generic-result.hbs | 32 +++++++----- ...-sheet.hbs => item-extendedtest-sheet.hbs} | 0 53 files changed, 207 insertions(+), 151 deletions(-) rename packs/aldebaran/{000186.log => 000210.log} (100%) rename packs/aldebaran/{MANIFEST-000184 => MANIFEST-000208} (72%) rename packs/beyondtheblacksea/{000179.log => 000203.log} (100%) rename packs/beyondtheblacksea/{MANIFEST-000177 => MANIFEST-000201} (72%) rename packs/conditions/{000232.log => 000256.log} (100%) delete mode 100644 packs/conditions/MANIFEST-000230 create mode 100644 packs/conditions/MANIFEST-000254 rename packs/currency/{000232.log => 000256.log} (100%) delete mode 100644 packs/currency/MANIFEST-000230 create mode 100644 packs/currency/MANIFEST-000254 rename packs/darkstars-sf/{000044.log => 000068.log} (100%) delete mode 100644 packs/darkstars-sf/MANIFEST-000042 create mode 100644 packs/darkstars-sf/MANIFEST-000066 rename packs/nightborough/{000199.log => 000223.log} (100%) rename packs/nightborough/{MANIFEST-000197 => MANIFEST-000221} (71%) rename packs/sprawl/{000036.log => 000060.log} (100%) delete mode 100644 packs/sprawl/MANIFEST-000034 create mode 100644 packs/sprawl/MANIFEST-000058 create mode 100644 packs/tables/000004.log create mode 100644 packs/tables/000005.ldb create mode 100644 packs/tables/CURRENT create mode 100644 packs/tables/LOCK create mode 100644 packs/tables/LOG create mode 100644 packs/tables/MANIFEST-000002 rename templates/items/{item-cumulativetask-sheet.hbs => item-extendedtest-sheet.hbs} (100%) diff --git a/modules/dark-stars-actor-sheet.js b/modules/dark-stars-actor-sheet.js index bcb292f..0638665 100644 --- a/modules/dark-stars-actor-sheet.js +++ b/modules/dark-stars-actor-sheet.js @@ -54,7 +54,7 @@ export class DarkStarsActorSheet extends ActorSheet { subActors: foundry.utils.duplicate(this.actor.getSubActors()), encCapacity: this.actor.getEncumbranceCapacity(), conditions: this.actor.getConditions(), - tasks: this.actor.getCumulativeTasks(), + extendedTests: this.actor.getExtendedTests(), config: game.system.darkstars.config, description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}), notes: await TextEditor.enrichHTML(this.object.system.biodata.notes, {async: true}), @@ -151,12 +151,17 @@ export class DarkStarsActorSheet extends ActorSheet { const attrKey = $(event.currentTarget).data("attr-key") this.actor.rollAttribute(attrKey) }) - html.find('.start-cumulative-task').click((event) => { + html.find('.start-extended-test').click((event) => { const li = $(event.currentTarget).parents(".item") const skillId = li.data("item-id") this.actor.rollSkill(skillId, true) }) - + html.find('.roll-extended-test').click((event) => { + const li = $(event.currentTarget).parents(".item") + const testId = li.data("item-id") + this.actor.continueExtendedTest(testId) + }) + html.find('.roll-weapon').click((event) => { const li = $(event.currentTarget).parents(".item"); const skillId = li.data("item-id") diff --git a/modules/dark-stars-actor.js b/modules/dark-stars-actor.js index ed5b2cc..2cbb0f2 100644 --- a/modules/dark-stars-actor.js +++ b/modules/dark-stars-actor.js @@ -138,8 +138,8 @@ export class DarkStarsActor extends Actor { DarkStarsUtility.sortArrayObjectsByName(comp) return comp; } - getCumulativeTasks() { - let comp = foundry.utils.duplicate(this.items.filter(item => item.type == 'cumulativetask') || []); + getExtendedTests() { + let comp = foundry.utils.duplicate(this.items.filter(item => item.type == 'extendedtest') || []); DarkStarsUtility.sortArrayObjectsByName(comp) return comp; } @@ -266,7 +266,7 @@ export class DarkStarsActor extends Actor { /* -------------------------------------------- */ async equipItem(itemId) { let item = this.items.find(item => item.id == itemId) - if (item && item.system) { + if (item?.system) { if (item.type == "armor") { let armor = this.items.find(item => item.id != itemId && item.type == "armor" && item.system.equipped) if (armor) { @@ -634,16 +634,44 @@ export class DarkStarsActor extends Actor { rollData.title = "Attribute " + rollData.attr.label this.startRoll(rollData) } + /* -------------------------------------------- */ + continueExtendedTest(testId) { + let test = this.items.get(testId) + if (test) { + let skill = this.items.find(it => it.type == "skill" && it.name.toLowerCase() == test.system.skill.toLowerCase()) + if (skill) { + skill = foundry.utils.duplicate(skill) + this.updateSkill(skill) + let rollData = this.getCommonRollData() + rollData.mode = "extendedtest" + rollData.isExtended = true + rollData.extendedTest = test + rollData.title = "Extended test " + skill.name + rollData.skill = skill + rollData.img = skill.img + rollData.taskId = test.id + if (rollData.target) { + ui.notifications.warn("You are targetting a token with a skill : please use a Weapon instead.") + return + } + this.startRoll(rollData) + } else { + console.log("Unable to find the relevant skill for extended test " + test.system.skill) + } + } else { + console.log("Unable to find the extended test") + } + } /* -------------------------------------------- */ - async rollSkill(skillId, isCumulative = false, taskId = undefined) { + async rollSkill(skillId, isExtended = false, taskId = undefined) { let skill = this.items.get(skillId) if (skill) { skill = foundry.utils.duplicate(skill) this.updateSkill(skill) let rollData = this.getCommonRollData() rollData.mode = "skill" - rollData.isCumulative = isCumulative + rollData.isExtended = isExtended rollData.title = "Skill " + skill.name rollData.skill = skill rollData.img = skill.img @@ -651,15 +679,15 @@ export class DarkStarsActor extends Actor { ui.notifications.warn("You are targetting a token with a skill : please use a Weapon instead.") return } - if (isCumulative) { - rollData.title = "Cumulative Task " + skill.name + if (isExtended) { + rollData.title = "Extended Test " + skill.name if (!taskId) { - let cumulativeTask = await this.createEmbeddedDocuments("Item", [{name: "Cumulative task " + skill.name, type: "cumulativetask", + let extendedTest = await this.createEmbeddedDocuments("Item", [{name: "Extended test " + skill.name, type: "extendedtest", 'system.skill': skill.name}]) //console.log("Task", cumulativeTask) - rollData.taskId = cumulativeTask[0].id + rollData.taskId = extendedTest[0].id }else { - rollData.taskId = cumulativeTask[0].id + rollData.taskId = extendedTest[0].id } } this.startRoll(rollData) diff --git a/packs/aldebaran/000186.log b/packs/aldebaran/000210.log similarity index 100% rename from packs/aldebaran/000186.log rename to packs/aldebaran/000210.log diff --git a/packs/aldebaran/CURRENT b/packs/aldebaran/CURRENT index cce82a3..704e06e 100644 --- a/packs/aldebaran/CURRENT +++ b/packs/aldebaran/CURRENT @@ -1 +1 @@ -MANIFEST-000184 +MANIFEST-000208 diff --git a/packs/aldebaran/LOG b/packs/aldebaran/LOG index ed56bca..16ec393 100644 --- a/packs/aldebaran/LOG +++ b/packs/aldebaran/LOG @@ -1,7 +1,7 @@ -2024/06/09-22:14:13.855616 7f04234006c0 Recovering log #182 -2024/06/09-22:14:13.912791 7f04234006c0 Delete type=3 #180 -2024/06/09-22:14:13.912941 7f04234006c0 Delete type=0 #182 -2024/06/10-09:41:28.708545 7f041be006c0 Level-0 table #187: started -2024/06/10-09:41:28.708577 7f041be006c0 Level-0 table #187: 0 bytes OK -2024/06/10-09:41:28.715216 7f041be006c0 Delete type=0 #185 -2024/06/10-09:41:28.728576 7f041be006c0 Manual compaction at level-0 from '!folders!MA6uFJMVebGeayIk' @ 72057594037927935 : 1 .. '!items!zhjdppKgrON7wJn7' @ 0 : 0; will stop at (end) +2024/06/12-11:13:40.413261 7f3f0d6006c0 Recovering log #206 +2024/06/12-11:13:40.424230 7f3f0d6006c0 Delete type=3 #204 +2024/06/12-11:13:40.424287 7f3f0d6006c0 Delete type=0 #206 +2024/06/12-11:16:23.489560 7f3f060006c0 Level-0 table #211: started +2024/06/12-11:16:23.489605 7f3f060006c0 Level-0 table #211: 0 bytes OK +2024/06/12-11:16:23.520840 7f3f060006c0 Delete type=0 #209 +2024/06/12-11:16:23.590686 7f3f060006c0 Manual compaction at level-0 from '!folders!MA6uFJMVebGeayIk' @ 72057594037927935 : 1 .. '!items!zhjdppKgrON7wJn7' @ 0 : 0; will stop at (end) diff --git a/packs/aldebaran/LOG.old b/packs/aldebaran/LOG.old index c03e415..efbf698 100644 --- a/packs/aldebaran/LOG.old +++ b/packs/aldebaran/LOG.old @@ -1,7 +1,7 @@ -2024/06/09-15:12:48.633006 7f0422a006c0 Recovering log #178 -2024/06/09-15:12:48.642816 7f0422a006c0 Delete type=3 #176 -2024/06/09-15:12:48.642870 7f0422a006c0 Delete type=0 #178 -2024/06/09-22:14:10.275844 7f041be006c0 Level-0 table #183: started -2024/06/09-22:14:10.275910 7f041be006c0 Level-0 table #183: 0 bytes OK -2024/06/09-22:14:10.305783 7f041be006c0 Delete type=0 #181 -2024/06/09-22:14:10.338771 7f041be006c0 Manual compaction at level-0 from '!folders!MA6uFJMVebGeayIk' @ 72057594037927935 : 1 .. '!items!zhjdppKgrON7wJn7' @ 0 : 0; will stop at (end) +2024/06/12-11:13:16.247740 7f3f0ea006c0 Recovering log #202 +2024/06/12-11:13:16.258091 7f3f0ea006c0 Delete type=3 #200 +2024/06/12-11:13:16.258153 7f3f0ea006c0 Delete type=0 #202 +2024/06/12-11:13:34.719686 7f3f060006c0 Level-0 table #207: started +2024/06/12-11:13:34.719708 7f3f060006c0 Level-0 table #207: 0 bytes OK +2024/06/12-11:13:34.726803 7f3f060006c0 Delete type=0 #205 +2024/06/12-11:13:34.733250 7f3f060006c0 Manual compaction at level-0 from '!folders!MA6uFJMVebGeayIk' @ 72057594037927935 : 1 .. '!items!zhjdppKgrON7wJn7' @ 0 : 0; will stop at (end) diff --git a/packs/aldebaran/MANIFEST-000184 b/packs/aldebaran/MANIFEST-000208 similarity index 72% rename from packs/aldebaran/MANIFEST-000184 rename to packs/aldebaran/MANIFEST-000208 index f04d172ee01997ac962a61055b961320e170b155..78d26c21f46a597d1404bc1f9ef953d9a8ebf3dd 100644 GIT binary patch delta 43 tcmdnUxRG%}ugV`Tes^vLMy895oD9sD7+Ef|&7b|m6eMy9Byt5L0ssz|3yc5& delta 43 tcmdnUxRG%}ugVmas^#1aj7&QjIT@IDF|u4_GoLc|DoA7(NMsL41OOEj3zGl< diff --git a/packs/beyondtheblacksea/000179.log b/packs/beyondtheblacksea/000203.log similarity index 100% rename from packs/beyondtheblacksea/000179.log rename to packs/beyondtheblacksea/000203.log diff --git a/packs/beyondtheblacksea/CURRENT b/packs/beyondtheblacksea/CURRENT index 0e27482..6d0c8e6 100644 --- a/packs/beyondtheblacksea/CURRENT +++ b/packs/beyondtheblacksea/CURRENT @@ -1 +1 @@ -MANIFEST-000177 +MANIFEST-000201 diff --git a/packs/beyondtheblacksea/LOG b/packs/beyondtheblacksea/LOG index 9c42b87..b5ba52e 100644 --- a/packs/beyondtheblacksea/LOG +++ b/packs/beyondtheblacksea/LOG @@ -1,7 +1,7 @@ -2024/06/09-22:14:13.916877 7f04220006c0 Recovering log #175 -2024/06/09-22:14:13.976920 7f04220006c0 Delete type=3 #173 -2024/06/09-22:14:13.977065 7f04220006c0 Delete type=0 #175 -2024/06/10-09:41:28.721432 7f041be006c0 Level-0 table #180: started -2024/06/10-09:41:28.721455 7f041be006c0 Level-0 table #180: 0 bytes OK -2024/06/10-09:41:28.728421 7f041be006c0 Delete type=0 #178 -2024/06/10-09:41:28.728621 7f041be006c0 Manual compaction at level-0 from '!folders!47aGmBuk1mHtbFFU' @ 72057594037927935 : 1 .. '!items!zwMpjsE84sk26eej' @ 0 : 0; will stop at (end) +2024/06/12-11:13:40.426654 7f3f0ea006c0 Recovering log #199 +2024/06/12-11:13:40.437435 7f3f0ea006c0 Delete type=3 #197 +2024/06/12-11:13:40.437506 7f3f0ea006c0 Delete type=0 #199 +2024/06/12-11:16:23.521086 7f3f060006c0 Level-0 table #204: started +2024/06/12-11:16:23.521151 7f3f060006c0 Level-0 table #204: 0 bytes OK +2024/06/12-11:16:23.553911 7f3f060006c0 Delete type=0 #202 +2024/06/12-11:16:23.590700 7f3f060006c0 Manual compaction at level-0 from '!folders!47aGmBuk1mHtbFFU' @ 72057594037927935 : 1 .. '!items!zwMpjsE84sk26eej' @ 0 : 0; will stop at (end) diff --git a/packs/beyondtheblacksea/LOG.old b/packs/beyondtheblacksea/LOG.old index f346ab1..53f87bb 100644 --- a/packs/beyondtheblacksea/LOG.old +++ b/packs/beyondtheblacksea/LOG.old @@ -1,7 +1,7 @@ -2024/06/09-15:12:48.646030 7f04220006c0 Recovering log #171 -2024/06/09-15:12:48.657289 7f04220006c0 Delete type=3 #169 -2024/06/09-15:12:48.657351 7f04220006c0 Delete type=0 #171 -2024/06/09-22:14:10.305922 7f041be006c0 Level-0 table #176: started -2024/06/09-22:14:10.305944 7f041be006c0 Level-0 table #176: 0 bytes OK -2024/06/09-22:14:10.338591 7f041be006c0 Delete type=0 #174 -2024/06/09-22:14:10.376968 7f041be006c0 Manual compaction at level-0 from '!folders!47aGmBuk1mHtbFFU' @ 72057594037927935 : 1 .. '!items!zwMpjsE84sk26eej' @ 0 : 0; will stop at (end) +2024/06/12-11:13:16.262812 7f3f0d6006c0 Recovering log #195 +2024/06/12-11:13:16.272606 7f3f0d6006c0 Delete type=3 #193 +2024/06/12-11:13:16.272662 7f3f0d6006c0 Delete type=0 #195 +2024/06/12-11:13:34.727044 7f3f060006c0 Level-0 table #200: started +2024/06/12-11:13:34.727098 7f3f060006c0 Level-0 table #200: 0 bytes OK +2024/06/12-11:13:34.733076 7f3f060006c0 Delete type=0 #198 +2024/06/12-11:13:34.733265 7f3f060006c0 Manual compaction at level-0 from '!folders!47aGmBuk1mHtbFFU' @ 72057594037927935 : 1 .. '!items!zwMpjsE84sk26eej' @ 0 : 0; will stop at (end) diff --git a/packs/beyondtheblacksea/MANIFEST-000177 b/packs/beyondtheblacksea/MANIFEST-000201 similarity index 72% rename from packs/beyondtheblacksea/MANIFEST-000177 rename to packs/beyondtheblacksea/MANIFEST-000201 index 77cf6697b393955ad4cb1f1d975fc33ef5b4fd86..81f909f4f2b3e5c5b8d3e58997344f252eff5e34 100644 GIT binary patch delta 43 tcmdnUxRG%}ugZqGoO;|0j7+B(IT@HwGqS7|ob-NPB1q&kNaQR?1OO7x3zGl< delta 43 tcmdnUxRG%}uZsK3XV1797@0OPaxyS)W@K3__>`$e7$mY8B(fDG0stY%3sC?7 diff --git a/packs/conditions/000232.log b/packs/conditions/000256.log similarity index 100% rename from packs/conditions/000232.log rename to packs/conditions/000256.log diff --git a/packs/conditions/CURRENT b/packs/conditions/CURRENT index 7a8f695..13813b8 100644 --- a/packs/conditions/CURRENT +++ b/packs/conditions/CURRENT @@ -1 +1 @@ -MANIFEST-000230 +MANIFEST-000254 diff --git a/packs/conditions/LOG b/packs/conditions/LOG index 1d739dc..7b0b0ef 100644 --- a/packs/conditions/LOG +++ b/packs/conditions/LOG @@ -1,7 +1,7 @@ -2024/06/09-22:14:13.629087 7f04234006c0 Recovering log #228 -2024/06/09-22:14:13.682604 7f04234006c0 Delete type=3 #226 -2024/06/09-22:14:13.682717 7f04234006c0 Delete type=0 #228 -2024/06/10-09:41:28.681612 7f041be006c0 Level-0 table #233: started -2024/06/10-09:41:28.681700 7f041be006c0 Level-0 table #233: 0 bytes OK -2024/06/10-09:41:28.688115 7f041be006c0 Delete type=0 #231 -2024/06/10-09:41:28.708370 7f041be006c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2024/06/12-11:13:40.356313 7f3f0d6006c0 Recovering log #252 +2024/06/12-11:13:40.366003 7f3f0d6006c0 Delete type=3 #250 +2024/06/12-11:13:40.366126 7f3f0d6006c0 Delete type=0 #252 +2024/06/12-11:16:23.317811 7f3f060006c0 Level-0 table #257: started +2024/06/12-11:16:23.317841 7f3f060006c0 Level-0 table #257: 0 bytes OK +2024/06/12-11:16:23.355645 7f3f060006c0 Delete type=0 #255 +2024/06/12-11:16:23.460439 7f3f060006c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) diff --git a/packs/conditions/LOG.old b/packs/conditions/LOG.old index 6b0dcbf..1b4ad4d 100644 --- a/packs/conditions/LOG.old +++ b/packs/conditions/LOG.old @@ -1,7 +1,7 @@ -2024/06/09-15:12:48.575130 7f0422a006c0 Recovering log #224 -2024/06/09-15:12:48.586449 7f0422a006c0 Delete type=3 #222 -2024/06/09-15:12:48.586519 7f0422a006c0 Delete type=0 #224 -2024/06/09-22:14:10.136453 7f041be006c0 Level-0 table #229: started -2024/06/09-22:14:10.136510 7f041be006c0 Level-0 table #229: 0 bytes OK -2024/06/09-22:14:10.178843 7f041be006c0 Delete type=0 #227 -2024/06/09-22:14:10.237058 7f041be006c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2024/06/12-11:13:16.189039 7f3f0ea006c0 Recovering log #248 +2024/06/12-11:13:16.200829 7f3f0ea006c0 Delete type=3 #246 +2024/06/12-11:13:16.200927 7f3f0ea006c0 Delete type=0 #248 +2024/06/12-11:13:34.657802 7f3f060006c0 Level-0 table #253: started +2024/06/12-11:13:34.657837 7f3f060006c0 Level-0 table #253: 0 bytes OK +2024/06/12-11:13:34.663971 7f3f060006c0 Delete type=0 #251 +2024/06/12-11:13:34.681143 7f3f060006c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) diff --git a/packs/conditions/MANIFEST-000230 b/packs/conditions/MANIFEST-000230 deleted file mode 100644 index fdea4d947ed4b6930421c55dd9b74e3bb4c28b78..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 69 zcmWIhx#Ncn10$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAev!qRLpQh>7@3|kaxyT# UU}RxP&{??(B=77@3|kaxyT# UU}RxP&{??(B=7(fOdii&CZIVq_{ z#fmQxX}RaIqVW)#He50QVk fn2CXtfssj@lYv=>cElz7CMD2jl|)3QH!> diff --git a/packs/darkstars-sf/MANIFEST-000066 b/packs/darkstars-sf/MANIFEST-000066 new file mode 100644 index 0000000000000000000000000000000000000000..afb2811cc5b065be11eae85b1a210958fe2ef27c GIT binary patch literal 139 zcmbQVdy7&E10$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAei1tp>(fOdii&CZIVq_{ z#fmQxX}RaIqVW)#He50O9d fk?S`n10$0&Cj+w!%QM!La@HLnz6+4=2IK<(EaxZc literal 0 HcmV?d00001 diff --git a/packs/nightborough/000199.log b/packs/nightborough/000223.log similarity index 100% rename from packs/nightborough/000199.log rename to packs/nightborough/000223.log diff --git a/packs/nightborough/CURRENT b/packs/nightborough/CURRENT index edcd2de..2582555 100644 --- a/packs/nightborough/CURRENT +++ b/packs/nightborough/CURRENT @@ -1 +1 @@ -MANIFEST-000197 +MANIFEST-000221 diff --git a/packs/nightborough/LOG b/packs/nightborough/LOG index 50ef0a4..36af6ee 100644 --- a/packs/nightborough/LOG +++ b/packs/nightborough/LOG @@ -1,7 +1,7 @@ -2024/06/09-22:14:13.982525 7f04234006c0 Recovering log #195 -2024/06/09-22:14:14.045462 7f04234006c0 Delete type=3 #193 -2024/06/09-22:14:14.045536 7f04234006c0 Delete type=0 #195 -2024/06/10-09:41:28.715334 7f041be006c0 Level-0 table #200: started -2024/06/10-09:41:28.715357 7f041be006c0 Level-0 table #200: 0 bytes OK -2024/06/10-09:41:28.721312 7f041be006c0 Delete type=0 #198 -2024/06/10-09:41:28.728591 7f041be006c0 Manual compaction at level-0 from '!folders!2iZtDz80npHPIwkS' @ 72057594037927935 : 1 .. '!items!zyFR9C1jBTeFzbxg' @ 0 : 0; will stop at (end) +2024/06/12-11:13:40.440639 7f3f0d6006c0 Recovering log #219 +2024/06/12-11:13:40.450523 7f3f0d6006c0 Delete type=3 #217 +2024/06/12-11:13:40.450593 7f3f0d6006c0 Delete type=0 #219 +2024/06/12-11:16:23.645974 7f3f060006c0 Level-0 table #224: started +2024/06/12-11:16:23.646004 7f3f060006c0 Level-0 table #224: 0 bytes OK +2024/06/12-11:16:23.683161 7f3f060006c0 Delete type=0 #222 +2024/06/12-11:16:23.683408 7f3f060006c0 Manual compaction at level-0 from '!folders!2iZtDz80npHPIwkS' @ 72057594037927935 : 1 .. '!items!zyFR9C1jBTeFzbxg' @ 0 : 0; will stop at (end) diff --git a/packs/nightborough/LOG.old b/packs/nightborough/LOG.old index f78e9ea..cec45ef 100644 --- a/packs/nightborough/LOG.old +++ b/packs/nightborough/LOG.old @@ -1,7 +1,7 @@ -2024/06/09-15:12:48.661428 7f0422a006c0 Recovering log #191 -2024/06/09-15:12:48.671794 7f0422a006c0 Delete type=3 #189 -2024/06/09-15:12:48.671874 7f0422a006c0 Delete type=0 #191 -2024/06/09-22:14:10.338805 7f041be006c0 Level-0 table #196: started -2024/06/09-22:14:10.338838 7f041be006c0 Level-0 table #196: 0 bytes OK -2024/06/09-22:14:10.376746 7f041be006c0 Delete type=0 #194 -2024/06/09-22:14:10.376994 7f041be006c0 Manual compaction at level-0 from '!folders!2iZtDz80npHPIwkS' @ 72057594037927935 : 1 .. '!items!zyFR9C1jBTeFzbxg' @ 0 : 0; will stop at (end) +2024/06/12-11:13:16.276335 7f3f0ea006c0 Recovering log #215 +2024/06/12-11:13:16.287074 7f3f0ea006c0 Delete type=3 #213 +2024/06/12-11:13:16.287130 7f3f0ea006c0 Delete type=0 #215 +2024/06/12-11:13:34.733411 7f3f060006c0 Level-0 table #220: started +2024/06/12-11:13:34.733492 7f3f060006c0 Level-0 table #220: 0 bytes OK +2024/06/12-11:13:34.741601 7f3f060006c0 Delete type=0 #218 +2024/06/12-11:13:34.741825 7f3f060006c0 Manual compaction at level-0 from '!folders!2iZtDz80npHPIwkS' @ 72057594037927935 : 1 .. '!items!zyFR9C1jBTeFzbxg' @ 0 : 0; will stop at (end) diff --git a/packs/nightborough/MANIFEST-000197 b/packs/nightborough/MANIFEST-000221 similarity index 71% rename from packs/nightborough/MANIFEST-000197 rename to packs/nightborough/MANIFEST-000221 index 76242f275c9e838e472587cb3f471277678137c6..70713aded366ed6f213f05e6ca6fdb76edd4e357 100644 GIT binary patch delta 43 tcmdnQxQTH>pUU=ZL3M5hMy7j=oD9tO8Cf<7+BF>901~+m5_t#`0RRlR3v~bh delta 43 tcmdnQxQTH>pGtD>rZe0Oj7-NEIT@IbGqP+F{J%nS4M^lTNaQ3)1OO`|3`PI| diff --git a/packs/sprawl/000036.log b/packs/sprawl/000060.log similarity index 100% rename from packs/sprawl/000036.log rename to packs/sprawl/000060.log diff --git a/packs/sprawl/CURRENT b/packs/sprawl/CURRENT index eea9b0f..717cf9a 100644 --- a/packs/sprawl/CURRENT +++ b/packs/sprawl/CURRENT @@ -1 +1 @@ -MANIFEST-000034 +MANIFEST-000058 diff --git a/packs/sprawl/LOG b/packs/sprawl/LOG index 950889e..f862222 100644 --- a/packs/sprawl/LOG +++ b/packs/sprawl/LOG @@ -1,8 +1,8 @@ -2024/06/09-22:14:13.740220 7f04234006c0 Recovering log #32 -2024/06/09-22:14:13.790228 7f04234006c0 Delete type=3 #30 -2024/06/09-22:14:13.790339 7f04234006c0 Delete type=0 #32 -2024/06/10-09:41:28.688322 7f041be006c0 Level-0 table #37: started -2024/06/10-09:41:28.688366 7f041be006c0 Level-0 table #37: 0 bytes OK -2024/06/10-09:41:28.695417 7f041be006c0 Delete type=0 #35 -2024/06/10-09:41:28.708385 7f041be006c0 Manual compaction at level-0 from '!folders!0XjcJyQMCVYU611t' @ 72057594037927935 : 1 .. '!items!zzDfuUJpQzzz262R' @ 0 : 0; will stop at (end) -2024/06/10-09:41:28.708412 7f041be006c0 Manual compaction at level-1 from '!folders!0XjcJyQMCVYU611t' @ 72057594037927935 : 1 .. '!items!zzDfuUJpQzzz262R' @ 0 : 0; will stop at (end) +2024/06/12-11:13:40.382275 7f3f0d6006c0 Recovering log #56 +2024/06/12-11:13:40.392775 7f3f0d6006c0 Delete type=3 #54 +2024/06/12-11:13:40.392833 7f3f0d6006c0 Delete type=0 #56 +2024/06/12-11:16:23.460642 7f3f060006c0 Level-0 table #61: started +2024/06/12-11:16:23.460722 7f3f060006c0 Level-0 table #61: 0 bytes OK +2024/06/12-11:16:23.489273 7f3f060006c0 Delete type=0 #59 +2024/06/12-11:16:23.590665 7f3f060006c0 Manual compaction at level-0 from '!folders!0XjcJyQMCVYU611t' @ 72057594037927935 : 1 .. '!items!zzDfuUJpQzzz262R' @ 0 : 0; will stop at (end) +2024/06/12-11:16:23.590714 7f3f060006c0 Manual compaction at level-1 from '!folders!0XjcJyQMCVYU611t' @ 72057594037927935 : 1 .. '!items!zzDfuUJpQzzz262R' @ 0 : 0; will stop at (end) diff --git a/packs/sprawl/LOG.old b/packs/sprawl/LOG.old index e9f2cc6..81d0184 100644 --- a/packs/sprawl/LOG.old +++ b/packs/sprawl/LOG.old @@ -1,8 +1,8 @@ -2024/06/09-15:12:48.601801 7f0422a006c0 Recovering log #28 -2024/06/09-15:12:48.612089 7f0422a006c0 Delete type=3 #26 -2024/06/09-15:12:48.612161 7f0422a006c0 Delete type=0 #28 -2024/06/09-22:14:10.207782 7f041be006c0 Level-0 table #33: started -2024/06/09-22:14:10.207808 7f041be006c0 Level-0 table #33: 0 bytes OK -2024/06/09-22:14:10.236857 7f041be006c0 Delete type=0 #31 -2024/06/09-22:14:10.275812 7f041be006c0 Manual compaction at level-0 from '!folders!0XjcJyQMCVYU611t' @ 72057594037927935 : 1 .. '!items!zzDfuUJpQzzz262R' @ 0 : 0; will stop at (end) -2024/06/09-22:14:10.305912 7f041be006c0 Manual compaction at level-1 from '!folders!0XjcJyQMCVYU611t' @ 72057594037927935 : 1 .. '!items!zzDfuUJpQzzz262R' @ 0 : 0; will stop at (end) +2024/06/12-11:13:16.217842 7f3f0ea006c0 Recovering log #52 +2024/06/12-11:13:16.227586 7f3f0ea006c0 Delete type=3 #50 +2024/06/12-11:13:16.227643 7f3f0ea006c0 Delete type=0 #52 +2024/06/12-11:13:34.706400 7f3f060006c0 Level-0 table #57: started +2024/06/12-11:13:34.706452 7f3f060006c0 Level-0 table #57: 0 bytes OK +2024/06/12-11:13:34.713151 7f3f060006c0 Delete type=0 #55 +2024/06/12-11:13:34.719676 7f3f060006c0 Manual compaction at level-0 from '!folders!0XjcJyQMCVYU611t' @ 72057594037927935 : 1 .. '!items!zzDfuUJpQzzz262R' @ 0 : 0; will stop at (end) +2024/06/12-11:13:34.733233 7f3f060006c0 Manual compaction at level-1 from '!folders!0XjcJyQMCVYU611t' @ 72057594037927935 : 1 .. '!items!zzDfuUJpQzzz262R' @ 0 : 0; will stop at (end) diff --git a/packs/sprawl/MANIFEST-000034 b/packs/sprawl/MANIFEST-000034 deleted file mode 100644 index 2dff9c20dbc09de8ba2f55c98e85ba540e7a76b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 139 zcmey!Zo55&fss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zlfcQ_4YeSMa8uIoRrj} zVnu_9tYojsKwsyu$WSvw!xF|{Obj3(ub5eqnp><`RppXa8tPRLSXEVJWM&k^=)wq= hXE&Us!pXqMq|C{{titk>O?&%-LJ%J)$gBqB0{{R@CTjoy diff --git a/packs/sprawl/MANIFEST-000058 b/packs/sprawl/MANIFEST-000058 new file mode 100644 index 0000000000000000000000000000000000000000..b5bcbaccd43fbd6258d12c49f4168df445be9cb0 GIT binary patch literal 139 zcmey!Zo55&fss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zlfcQ_4YeSMa8uIoRrj} zVnu_9tYojsKwsyu$WSvw!xF|{Obj3(ub5eqnp><`RppXa8tPRLSXEVJWM&k^=)wq= hKXd>8eNF~OCTmUxW*e5DYzdh^g+P28Am0wi2LMwFDL()J literal 0 HcmV?d00001 diff --git a/packs/tables/000004.log b/packs/tables/000004.log new file mode 100644 index 0000000..e69de29 diff --git a/packs/tables/000005.ldb b/packs/tables/000005.ldb new file mode 100644 index 0000000000000000000000000000000000000000..afbc0f4f4bedd0a39a4c768ab2d882633ed1f911 GIT binary patch literal 2739 zcmai#Yi!%r702(TDVu)8P7^n=Hz$>dw95)brrwVQMkQIYWYdXk>tV}nI#MDf+LWk} zl;j5tELkzE>nfl@?PclOAk8og`;z#vILX=+F0i6S+W;%j0n3JA#n82%gnZbFEyL7Z zDhZG>#YS9yxc_q>=bU@b?|y1r0LDwWNo81(Q%s)uO4y|&{b9F2tJGKy_5uU^dkrp= zMW(=!K9XkS9A`{&c_AZmMq0`+svs3fGbt2u$Sh=}qB5vda)VhLbtETqix$*D<}9aV zWTDg?>?4sNb4poM71B3LCLI%jiLhImKIWQ>ObHcarE^N6;LRuH@bQsQ!oPr|=|tE& z9^)!BZ;xf?MH`ab6Q!c+O%)PzTx=ojnL*Ojn0+)dGU*rz<=N2GgtpeSnx?bkf#vi+Pz; z78R8%M6)Pod_`4{WEpw>2(row^7yVXiFVU+>m#i;3uU2@L0d|bO$v=vtHo}0YO2gJ zDwmB5ri(GF+v>4;>~=RrQBE^ikg@_V_znQdjWnm-Op1)6j_)!V1B+;3&2!uP;IQVd zBp1peLq5LU`>de3HS{g)u;z;-qbO|@guN^MZNI|XLf(cCd$d)cNKX-eU z8g(C=npYE9HRhS-B?0-sBqLIq_4|)61^j6~o=Wpz8Kx1Yk-2C!4Z^jo;-$x6vdClxH`1v=$W;Q`-a?9e1r%t{4gL{P~c;*$yx z{`NNEnLO?u3nwI*me^x4>&U60qmv`lecRnU;vltM4M={ftJ%1qlv-Hn# zxu`m;m1wjYk>gQ?T7-Ljv)ISyyHIqw#`#v%cFsS=B$9KEiM)M2baFB!C){LXqxHeY zZnO>!V2SSl>+d#*^Z1^|Aog&Z83c|yb2vMQ4Nxm>wl!#x_ZfQvXL^8T=pWrU#3vG6 z>SBr8^HR6D$_cqVx|UW{$)|o8LlAM89jL6cGE+qb!!x479h_?)iUAenK;;(DSTZJ6 zQ8A-IQl_jGzE*tuI(u+l-1nz$u#)^|PlQEKm~Rqm1)vXV|I@o33HRW|+Ttb5uHvr4>Iv|{8PkJ5TQ)8|e=wI)OAPUykfnl9~1?rIv zq3OE-EU}QVnyqLO%6$L&A@n>*1xaImeH$3I>7PJ7#9>Qq8xVH0J-ywWv)z^Am{NTc z7&c?%{tHltZrEDe09{_Ql{&Erd=sF5(-UJ9g+qCi2ZQKolI}?G?Cx*B0`=gr=&=Hc z+D(AGb)-LR?)>4Qlptn}Q&pjuyYnuHoBCdddZNJ2Gur@A{14#JBsg#_(9ujvmlTw*e*7oi0NyFKsbN^(9q)L7L<(st6en5tBvL{ zuR%T3;C^(>z{VbII`Qk>!91s^cOJvg8Lz^xB2j?*YU_Y+CBURlyF^5UV;XBM=seCs z<*Q_zfqiHw%B(9rfj4hlub)NCytUF80k;n14|=&rp1ZoWz2qfFxx zK%1NkZxW!Vb{PN<`&k>mN%Te#FO1>(Ei8J=tQG0SP5=;K0Q~gY6O`q#cdos#=g}8` zWWDgq&pQ^L>0`UUU;TXNy^E(~!&i+@nhc>st1q`|)1E+oCn$V!qYTIvUJ%jswTN7W z6SJ%(P)2>B7!W0?5N?`m@9iDbW@#)0TmR}@15dX6Uk-ZUmv=vKp#!wzq(X|4Caztq3K_rjs_$RGa;nMqyE literal 0 HcmV?d00001 diff --git a/packs/tables/CURRENT b/packs/tables/CURRENT new file mode 100644 index 0000000..1a84852 --- /dev/null +++ b/packs/tables/CURRENT @@ -0,0 +1 @@ +MANIFEST-000002 diff --git a/packs/tables/LOCK b/packs/tables/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/packs/tables/LOG b/packs/tables/LOG new file mode 100644 index 0000000..af49811 --- /dev/null +++ b/packs/tables/LOG @@ -0,0 +1,5 @@ +2024/06/12-11:13:40.470344 7f3f0cc006c0 Delete type=3 #1 +2024/06/12-11:16:23.590854 7f3f060006c0 Level-0 table #5: started +2024/06/12-11:16:23.609006 7f3f060006c0 Level-0 table #5: 2739 bytes OK +2024/06/12-11:16:23.645817 7f3f060006c0 Delete type=0 #3 +2024/06/12-11:16:23.683365 7f3f060006c0 Manual compaction at level-0 from '!tables!8kvF6sVAF7iLt0Kg' @ 72057594037927935 : 1 .. '!tables.results!rnt5wvIIwHrTIs0y.wIvaW5jjuw7mp7s3' @ 0 : 0; will stop at (end) diff --git a/packs/tables/MANIFEST-000002 b/packs/tables/MANIFEST-000002 new file mode 100644 index 0000000000000000000000000000000000000000..b05ffc246ce8eb04a80ad4bd95956cb166537cad GIT binary patch literal 161 zcmWIhx#Ncn10$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAe$kRS-TOEg7@3$k8JJmE z7@np0A&Sd>>{T3+VqS?*C3;#q7^saNh{{skill.system.bonus}} {{skill.total}}% - +
@@ -160,14 +160,14 @@ - {{#each tasks as |task key|}} -
  • - + {{#each extendedTests as |test key|}} +
  • + - {{task.name}} - {{task.system.skill}} - {{task.system.nbrolls}} - {{task.system.cumulated}} + {{test.name}} + {{test.system.skill}} + {{test.system.nbrolls}} + {{test.system.cumulated}}
     
    diff --git a/templates/apps/roll-dialog-generic.hbs b/templates/apps/roll-dialog-generic.hbs index 8022d18..7052ba5 100644 --- a/templates/apps/roll-dialog-generic.hbs +++ b/templates/apps/roll-dialog-generic.hbs @@ -20,7 +20,7 @@
    {{/if}} - + {{#if skill}}
    Skill : diff --git a/templates/chat/chat-generic-result.hbs b/templates/chat/chat-generic-result.hbs index bce8a4c..daca330 100644 --- a/templates/chat/chat-generic-result.hbs +++ b/templates/chat/chat-generic-result.hbs @@ -41,16 +41,8 @@
  • Target Number: {{percentValue}}%
  • Result: {{diceResult}}
  • -
  • - Degrees: {{degrees}} - - - - - - -
  • - +
  • Degrees: {{degrees}}
  • + {{#if taskId}}
  • Task : {{taskName}}
  • Nb rolls : {{taskNbrolls}}
  • @@ -89,9 +81,23 @@
  • Penetration : {{mul weapon.system.penetrationmin damageMultiplier}} - {{mul weapon.system.penetrationmax damageMultiplier}}
  • {{/if}} - {{#if (and (not isSuccess) rerolls)}} - - {{/if}} +
  • + + + + + + +   + {{#if (and (not isSuccess) rerolls)}} + + + + + + + {{/if}} +
  • diff --git a/templates/items/item-cumulativetask-sheet.hbs b/templates/items/item-extendedtest-sheet.hbs similarity index 100% rename from templates/items/item-cumulativetask-sheet.hbs rename to templates/items/item-extendedtest-sheet.hbs