5 Commits

Author SHA1 Message Date
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
16 changed files with 88 additions and 29 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.

View File

@ -1 +1 @@
MANIFEST-000060
MANIFEST-000076

View File

@ -1,8 +1,15 @@
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/08-04:58:23.767734 7f33996006c0 Recovering log #74
2024/08/08-04:58:23.828546 7f33996006c0 Delete type=3 #72
2024/08/08-04:58:23.828601 7f33996006c0 Delete type=0 #74
2024/08/08-05:04:31.857707 7f33978006c0 Level-0 table #79: started
2024/08/08-05:04:31.861026 7f33978006c0 Level-0 table #79: 24481 bytes OK
2024/08/08-05:04:31.868635 7f33978006c0 Delete type=0 #77
2024/08/08-05:04:31.903805 7f33978006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)
2024/08/08-05:04:31.903951 7f33978006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at '!items!yRIFroc5VC9Oj3qY' @ 136 : 1
2024/08/08-05:04:31.903973 7f33978006c0 Compacting 1@1 + 1@2 files
2024/08/08-05:04:31.907992 7f33978006c0 Generated table #80@1: 56 keys, 24845 bytes
2024/08/08-05:04:31.908019 7f33978006c0 Compacted 1@1 + 1@2 files => 24845 bytes
2024/08/08-05:04:31.914722 7f33978006c0 compacted to: files[ 0 0 1 0 0 0 0 ]
2024/08/08-05:04:31.914879 7f33978006c0 Delete type=2 #5
2024/08/08-05:04:31.915115 7f33978006c0 Delete type=2 #79
2024/08/08-05:04:31.933903 7f33978006c0 Manual compaction at level-1 from '!items!yRIFroc5VC9Oj3qY' @ 136 : 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/07-23:07:46.117612 7f33982006c0 Recovering log #70
2024/08/07-23:07:46.128384 7f33982006c0 Delete type=3 #68
2024/08/07-23:07:46.128478 7f33982006c0 Delete type=0 #70
2024/08/07-23:08:55.204549 7f33978006c0 Level-0 table #75: started
2024/08/07-23:08:55.204589 7f33978006c0 Level-0 table #75: 0 bytes OK
2024/08/07-23:08:55.210948 7f33978006c0 Delete type=0 #73
2024/08/07-23:08:55.211205 7f33978006c0 Manual compaction at level-0 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)
2024/08/07-23:08:55.238982 7f33978006c0 Manual compaction at level-1 from '!items!1HevhbCbvMonyQXe' @ 72057594037927935 : 1 .. '!items!yRIFroc5VC9Oj3qY' @ 0 : 0; will stop at (end)

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.10.zip",
"authors": [
{
"name": "Cynicide",
@ -14,7 +14,7 @@
"email": ""
}
],
"version": "12.0.6",
"version": "12.0.10",
"compatibility": {
"minimum": "12",
"verified": "12"

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