Merge dice-roller branch

This commit is contained in:
LeRatierBretonnien 2024-07-26 18:31:41 +02:00
parent 895ab67602
commit 41a9769945
8 changed files with 28 additions and 28 deletions

View File

@ -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) {

View File

@ -1 +1 @@
MANIFEST-000006
MANIFEST-000010

View File

@ -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)

View File

@ -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)

Binary file not shown.

View File

@ -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"