8 Commits

Author SHA1 Message Date
46d991fb65 Fix compendiums 2024-08-09 08:47:23 +02:00
5ca0362773 Fix compendiums 2024-08-09 08:44:14 +02:00
f777131374 Fix compendiums 2024-08-08 23:16:50 +02:00
c11f7d23a8 Add game system for skills 2024-08-08 05:04:53 +02:00
98e6b70b1b Add game system for skills 2024-08-07 23:08:58 +02:00
6597334682 Add game system for skills 2024-08-07 23:08:46 +02:00
534fcb04fb Manage game systems 2024-08-07 17:27:08 +02:00
8be95c20bd Add new rank option 2024-08-04 20:44:34 +02:00
24 changed files with 95 additions and 30 deletions

View File

@ -27,4 +27,7 @@
font-family: Signika, sans-serif;
font-size: 12px;
text-align: center;
}
.select-fixed-width {
width: 100px;
}

View File

@ -21,6 +21,12 @@ rmss.difficulties = {
absurd: {key: "absurd", label:"Absurd (-70)", value: -70},
};
rmss.gameSystems = [
{key: "common", label:"Common"},
{key: "merp", label:"Middle Earth Role Playing (MERP)"},
{key: "rmfrp", label:"Rolemaster Fantasy Role Playing (RMFRP)"},
];
rmss.combatSituations = [
{key: "none", label:"None (0)", modifier: 0},
{key: "melee", label:"Melee environment (-20)", modifier: -20},
@ -31,6 +37,7 @@ rmss.rankBonusProgressionList = [
{key: "standard", label:"Standard"},
{key: "limited", label:"Limited"},
{key: "combined", label:"Combined"},
{key: "race", label:"Linked to Race"},
]
rmss.lightOrDarknessModifiers = [

View File

@ -8,8 +8,14 @@ export class RFRPUtility {
/* -------------------------------------------- */
static async ready() {
this.registerSettings();
this.gameSystem = game.settings.get("fvtt-rolemaster-frp", "game_system");
const skillCategories = await RFRPUtility.loadCompendium("fvtt-rolemaster-frp.skill_categories")
this.skillCategories = skillCategories.map(i => i.toObject())
this.skillCategories = skillCategories.map(i => i.toObject()).filter( i => i.system.game_system == "common" || i.system.game_system == this.gameSystem);
// Sort skill categories by name
this.skillCategories.sort((a, b) => a.name.localeCompare(b.name));
}
/* -------------------------------------------- */
@ -17,6 +23,23 @@ export class RFRPUtility {
return this.skillCategories
}
/* -------------------------------------------- */
static registerSettings() {
game.settings.register("fvtt-rolemaster-frp", "game_system", {
name: "Game System",
hint: "List of Game Systems",
scope: "world",
default: "rmfrp",
requiresReload: true,
type: String,
config: true,
choices: {
rmfrp: "Rolemaster Fantasy Role Playing (RMFRP)",
merp: "Middle Earth Role Playing (MERP)"
}
});
}
/* -------------------------------------------- */
static async loadCompendiumData(compendium) {
const pack = game.packs.get(compendium);

View File

@ -208,7 +208,7 @@ export default class RMSSPlayerSheet extends ActorSheet {
context.spells = spells;
// Dump context to console
console.log(context);
console.log("ACTOR CONTEXT", context);
}

View File

@ -76,7 +76,7 @@ export default class RMSSSkillSheet extends ItemSheet {
if (this.item.isEmbedded) {
skillCategories = this.item.parent.items.filter(it => it.type == "skill_category");
}
console.log("CATEG", skillCategories);
//console.log("CATEG", skillCategories);
return (skillCategories);
}

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000060
MANIFEST-000085

View File

@ -1,8 +1,8 @@
2024/08/03-16:17:28.988843 7f2b120006c0 Recovering log #58
2024/08/03-16:17:29.000009 7f2b120006c0 Delete type=3 #56
2024/08/03-16:17:29.000149 7f2b120006c0 Delete type=0 #58
2024/08/03-16:40:12.660059 7f2b110006c0 Level-0 table #63: started
2024/08/03-16:40:12.660133 7f2b110006c0 Level-0 table #63: 0 bytes OK
2024/08/03-16:40:12.666773 7f2b110006c0 Delete type=0 #61
2024/08/03-16:40:12.677428 7f2b110006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)
2024/08/03-16:40:12.689036 7f2b110006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)
2024/08/09-08:44:27.325541 7f339a0006c0 Recovering log #83
2024/08/09-08:44:27.337335 7f339a0006c0 Delete type=3 #81
2024/08/09-08:44:27.337439 7f339a0006c0 Delete type=0 #83
2024/08/09-08:47:03.128372 7f33978006c0 Level-0 table #88: started
2024/08/09-08:47:03.128439 7f33978006c0 Level-0 table #88: 0 bytes OK
2024/08/09-08:47:03.134632 7f33978006c0 Delete type=0 #86
2024/08/09-08:47:03.134834 7f33978006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)
2024/08/09-08:47:03.134874 7f33978006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)

View File

@ -1,8 +1,8 @@
2024/08/02-16:48:51.596152 7f2b120006c0 Recovering log #54
2024/08/02-16:48:51.607028 7f2b120006c0 Delete type=3 #52
2024/08/02-16:48:51.607119 7f2b120006c0 Delete type=0 #54
2024/08/02-17:06:25.130824 7f2b110006c0 Level-0 table #59: started
2024/08/02-17:06:25.130880 7f2b110006c0 Level-0 table #59: 0 bytes OK
2024/08/02-17:06:25.137382 7f2b110006c0 Delete type=0 #57
2024/08/02-17:06:25.160338 7f2b110006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)
2024/08/02-17:06:25.160385 7f2b110006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)
2024/08/08-23:15:37.085427 7f3398c006c0 Recovering log #78
2024/08/08-23:15:37.095822 7f3398c006c0 Delete type=3 #76
2024/08/08-23:15:37.095882 7f3398c006c0 Delete type=0 #78
2024/08/08-23:16:07.736809 7f33978006c0 Level-0 table #84: started
2024/08/08-23:16:07.736836 7f33978006c0 Level-0 table #84: 0 bytes OK
2024/08/08-23:16:07.742967 7f33978006c0 Delete type=0 #82
2024/08/08-23:16:07.743117 7f33978006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)
2024/08/08-23:16:07.743146 7f33978006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)

Binary file not shown.

0
packs/skills/000004.log Normal file
View File

BIN
packs/skills/000005.ldb Normal file

Binary file not shown.

1
packs/skills/CURRENT Normal file
View File

@ -0,0 +1 @@
MANIFEST-000002

0
packs/skills/LOCK Normal file
View File

5
packs/skills/LOG Normal file
View File

@ -0,0 +1,5 @@
2024/08/09-08:44:27.356894 7f33996006c0 Delete type=3 #1
2024/08/09-08:47:03.112830 7f33978006c0 Level-0 table #5: started
2024/08/09-08:47:03.120597 7f33978006c0 Level-0 table #5: 145853 bytes OK
2024/08/09-08:47:03.127973 7f33978006c0 Delete type=0 #3
2024/08/09-08:47:03.134815 7f33978006c0 Manual compaction at level-0 from '!folders!Lr9SCthdWWHecwEI' @ 72057594037927935 : 1 .. '!items!zvdsAxlRZnL6gqms' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

@ -494,6 +494,9 @@
font-size: 12px;
text-align: center;
}
.select-fixed-width {
width: 100px;
}
.applicable-stats-grid-container {
display: grid;
grid-template-columns: [app-stat-1] 33% [app-stat-2] 33% [app-stat-3] 33%;

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.6.zip",
"download": "https://www.uberwald.me/gitea/public/fvtt-rolemaster-frp/archive/v12.0.11.zip",
"authors": [
{
"name": "Cynicide",
@ -14,7 +14,7 @@
"email": ""
}
],
"version": "12.0.6",
"version": "12.0.11",
"compatibility": {
"minimum": "12",
"verified": "12"
@ -27,7 +27,14 @@
"name": "skill_categories",
"label": "Skill Categories",
"system": "fvtt-rolemaster-frp",
"path": "./packs/skill_categories.db",
"path": "./packs/skill_categories",
"type": "Item"
},
{
"name": "skill",
"label": "Skills",
"system": "fvtt-rolemaster-frp",
"path": "./packs/skills",
"type": "Item"
}
],

View File

@ -313,6 +313,7 @@
"skill": {
"templates": ["base"],
"category" : "",
"game_system": "common",
"ranks": 0,
"new_ranks": {
"value": 0,
@ -332,6 +333,7 @@
"skill_category": {
"templates": ["base"],
"applicable_stats": "None",
"game_system": "common",
"app_stat_1": "None",
"app_stat_2": "None",
"app_stat_3": "None",

View File

@ -4,12 +4,19 @@
<h1><input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'Name' }}"/></h1>
</header>
<div class="sheet-content">
<div>Rank Bonus Progression
<select name="system.bonus_progression" value="{{system.bonus_progression}}" itemid="{{ item._id }}">
{{selectOptions config.rankBonusProgressionList selected=system.bonus_progression valueAttr="key" labelAttr="label"}}
</select>
<div class="flexrow">
<div>Rank Bonus Progression
<select class="select-fixed-width" name="system.bonus_progression" value="{{system.bonus_progression}}" itemid="{{ item._id }}">
{{selectOptions config.rankBonusProgressionList selected=system.bonus_progression valueAttr="key" labelAttr="label"}}
</select>
</div>
<div>Game system
<select class="select-fixed-width" name="system.game_system" value="{{system.game_system}}" itemid="{{ item._id }}">
{{selectOptions config.gameSystems selected=system.game_system valueAttr="key" labelAttr="label"}}
</select>
</div>
</div>
<div class="applicable-stats-grid-container">
<div class="applicable-stats-grid-container">
<div>
Applicable Stat 1
<select name="system.app_stat_1" class="app-stat-selector" value="{{system.app_stat_1}}" itemid="{{ item._id }}">

View File

@ -4,12 +4,19 @@
<h1><input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'Name' }}"/></h1>
</header>
<div class="sheet-content">
<div class="flexrow">
<div>Rank Bonus Progression
<select name="system.bonus_progression" value="{{system.bonus_progression}}" itemid="{{ item._id }}">
<select class="select-fixed-width" name="system.bonus_progression" value="{{system.bonus_progression}}" itemid="{{ item._id }}">
{{selectOptions config.rankBonusProgressionList selected=system.bonus_progression valueAttr="key" labelAttr="label"}}
</select>
</div>
<div>
<div>Game system
<select class="select-fixed-width" name="system.game_system" value="{{system.game_system}}" itemid="{{ item._id }}">
{{selectOptions config.gameSystems selected=system.game_system valueAttr="key" labelAttr="label"}}
</select>
</div>
</div>
<div>
Skill Category
<select name="system.category" class="app-stat-selector" value="{{system.category}}">
{{selectOptions owned_skillcats selected=selected_skillcat nameAttr="name" valueAttr="name" labelAttr="name"}}