diff --git a/module/sheets/skills/rmss_skill_sheet.js b/module/sheets/skills/rmss_skill_sheet.js index 99f963f..587c517 100644 --- a/module/sheets/skills/rmss_skill_sheet.js +++ b/module/sheets/skills/rmss_skill_sheet.js @@ -20,7 +20,7 @@ export default class RMSSSkillSheet extends ItemSheet { async getData() { const baseData = await super.getData(); - let enrichedDescription = await TextEditor.enrichHTML(this.item.system.description, {async: true}); + let enrichedDescription = await TextEditor.enrichHTML(this.item.system.description, { async: true }); // Get a list of the parent item's skill categories for the dropdown let ownedSkillCategories = this.prepareSkillCategoryValues(); @@ -51,16 +51,16 @@ export default class RMSSSkillSheet extends ItemSheet { html.find(".skillsheet-newrank").click(ev => { switch (ev.currentTarget.getAttribute("value")) { case "0": - this.object.update({system: {new_ranks: { value: 1 }}}); + this.object.update({ system: { new_ranks: { value: 1 } } }); break; case "1": - this.object.update({system: {new_ranks: { value: 2 }}}); + this.object.update({ system: { new_ranks: { value: 2 } } }); break; case "2": - this.object.update({system: {new_ranks: { value: 3 }}}); + this.object.update({ system: { new_ranks: { value: 3 } } }); break; case "3": - this.object.update({system: {new_ranks: { value: 0 }}}); + this.object.update({ system: { new_ranks: { value: 0 } } }); break; } }); @@ -70,13 +70,11 @@ export default class RMSSSkillSheet extends ItemSheet { // If this Skill is owned then we will return a list of Skill Categories and allow them to choose // Otherwise we'll just return 'Skill has no owner' prepareSkillCategoryValues() { - let skillNoOwner = {None: "Skill Has No Owner"}; + let skillNoOwner = { None: "Skill Has No Owner" }; - if (this.item.isEmbedded === null) { + if (!this.item.isEmbedded) { return (skillNoOwner); - } - else - { + } else { const skillCategories = this.item.parent.getOwnedItemsByType("skill_category"); return (skillCategories); } @@ -100,8 +98,7 @@ export default class RMSSSkillSheet extends ItemSheet { if (this.item.isEmbedded === null) { console.log("Skill has no owner"); } - else - { + else { const items = this.object.parent.items; for (const item of items) { diff --git a/packs/skill_categories/000008.log b/packs/skill_categories/000012.log similarity index 100% rename from packs/skill_categories/000008.log rename to packs/skill_categories/000012.log diff --git a/packs/skill_categories/CURRENT b/packs/skill_categories/CURRENT index f7753e2..3051f81 100644 --- a/packs/skill_categories/CURRENT +++ b/packs/skill_categories/CURRENT @@ -1 +1 @@ -MANIFEST-000006 +MANIFEST-000010 diff --git a/packs/skill_categories/LOG b/packs/skill_categories/LOG index 07bacba..d3dbafc 100644 --- a/packs/skill_categories/LOG +++ b/packs/skill_categories/LOG @@ -1,8 +1,8 @@ -2024/07/26-13:01:33.184951 7f70fa0006c0 Recovering log #4 -2024/07/26-13:01:33.276590 7f70fa0006c0 Delete type=0 #4 -2024/07/26-13:01:33.276711 7f70fa0006c0 Delete type=3 #2 -2024/07/26-14:15:40.712242 7f70f3e006c0 Level-0 table #9: started -2024/07/26-14:15:40.712297 7f70f3e006c0 Level-0 table #9: 0 bytes OK -2024/07/26-14:15:40.750893 7f70f3e006c0 Delete type=0 #7 -2024/07/26-14:15:40.806643 7f70f3e006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end) -2024/07/26-14:15:40.863267 7f70f3e006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end) +2024/07/26-14:23:44.308792 7f70f96006c0 Recovering log #8 +2024/07/26-14:23:44.319859 7f70f96006c0 Delete type=3 #6 +2024/07/26-14:23:44.320012 7f70f96006c0 Delete type=0 #8 +2024/07/26-18:27:58.297420 7f70f3e006c0 Level-0 table #13: started +2024/07/26-18:27:58.297474 7f70f3e006c0 Level-0 table #13: 0 bytes OK +2024/07/26-18:27:58.371139 7f70f3e006c0 Delete type=0 #11 +2024/07/26-18:27:58.497430 7f70f3e006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end) +2024/07/26-18:27:58.497486 7f70f3e006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end) diff --git a/packs/skill_categories/LOG.old b/packs/skill_categories/LOG.old index 7f95692..07bacba 100644 --- a/packs/skill_categories/LOG.old +++ b/packs/skill_categories/LOG.old @@ -1,5 +1,8 @@ -2024/07/26-09:38:09.968297 7f70fa0006c0 Delete type=3 #1 -2024/07/26-09:40:38.576572 7f70f3e006c0 Level-0 table #5: started -2024/07/26-09:40:38.595934 7f70f3e006c0 Level-0 table #5: 24247 bytes OK -2024/07/26-09:40:38.633153 7f70f3e006c0 Delete type=0 #3 -2024/07/26-09:40:38.675601 7f70f3e006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end) +2024/07/26-13:01:33.184951 7f70fa0006c0 Recovering log #4 +2024/07/26-13:01:33.276590 7f70fa0006c0 Delete type=0 #4 +2024/07/26-13:01:33.276711 7f70fa0006c0 Delete type=3 #2 +2024/07/26-14:15:40.712242 7f70f3e006c0 Level-0 table #9: started +2024/07/26-14:15:40.712297 7f70f3e006c0 Level-0 table #9: 0 bytes OK +2024/07/26-14:15:40.750893 7f70f3e006c0 Delete type=0 #7 +2024/07/26-14:15:40.806643 7f70f3e006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end) +2024/07/26-14:15:40.863267 7f70f3e006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end) diff --git a/packs/skill_categories/MANIFEST-000006 b/packs/skill_categories/MANIFEST-000006 deleted file mode 100644 index f3664e9..0000000 Binary files a/packs/skill_categories/MANIFEST-000006 and /dev/null differ diff --git a/packs/skill_categories/MANIFEST-000010 b/packs/skill_categories/MANIFEST-000010 new file mode 100644 index 0000000..4f947c0 Binary files /dev/null and b/packs/skill_categories/MANIFEST-000010 differ diff --git a/system.json b/system.json index 1088288..b0f0a88 100644 --- a/system.json +++ b/system.json @@ -3,7 +3,7 @@ "title": "Rolemaster FRP System", "description": "The Rolemaster FRP system for FoundryVTT.", "manifest": "https://www.uberwald.me/gitea/public/fvtt-rolemaster-frp/raw/branch/develop/system.json", - "download": "https://www.uberwald.me/gitea/public/fvtt-rolemaster-frp/archive/v12.0.zip", + "download": "https://www.uberwald.me/gitea/public/fvtt-rolemaster-frp/archive/v12.0.1.zip", "authors": [ { "name": "Cynicide", @@ -14,7 +14,7 @@ "email": "" } ], - "version": "12.0.0", + "version": "12.0.1", "compatibility": { "minimum": "12", "verified": "12"