Import RMFRP tables + properly rename all files
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
// Our Item Sheet extends the default
|
||||
export default class RMSSSkillCategorySheet extends ItemSheet {
|
||||
export default class RMFRPSkillCategorySheet extends ItemSheet {
|
||||
|
||||
// Set the height and width
|
||||
static get defaultOptions() {
|
||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||
width: 580,
|
||||
height: 440,
|
||||
template: "systems/fvtt-rolemaster-frp/templates/sheets/skills/rmss-skill-category-sheet.html",
|
||||
classes: ["rmss", "sheet", "item"]
|
||||
template: "systems/fvtt-rolemaster-frp/templates/sheets/skills/rmfrp-skill-category-sheet.html",
|
||||
classes: ["rmfrp", "sheet", "item"]
|
||||
});
|
||||
}
|
||||
|
||||
// If our sheet is called here it is.
|
||||
get template() {
|
||||
return "systems/fvtt-rolemaster-frp/templates/sheets/skills/rmss-skill-category-sheet.html";
|
||||
return "systems/fvtt-rolemaster-frp/templates/sheets/skills/rmfrp-skill-category-sheet.html";
|
||||
}
|
||||
|
||||
// Make the data available to the sheet template
|
||||
@ -40,7 +40,7 @@ export default class RMSSSkillCategorySheet extends ItemSheet {
|
||||
editable: this.isEditable,
|
||||
item: context.item,
|
||||
system: context.item.system,
|
||||
config: CONFIG.rmss,
|
||||
config: CONFIG.rmfrp,
|
||||
applicable_stat_list: applicableStatList,
|
||||
applicable_stat_1_selected: firstApplicableStat,
|
||||
applicable_stat_2_selected: secondApplicableStat,
|
||||
@ -63,8 +63,8 @@ export default class RMSSSkillCategorySheet extends ItemSheet {
|
||||
// the Stat Shortnames from Config so the user can select which stats are applicable to this Skill Category
|
||||
prepareApplicableStatNames(config) {
|
||||
let applicableStatList = {None: "None"};
|
||||
for (const item in config.rmss.stats) {
|
||||
applicableStatList[config.rmss.stats[item].shortname] = config.rmss.stats[item].shortname;
|
||||
for (const item in config.rmfrp.stats) {
|
||||
applicableStatList[config.rmfrp.stats[item].shortname] = config.rmfrp.stats[item].shortname;
|
||||
}
|
||||
return applicableStatList;
|
||||
}
|
@ -1,21 +1,21 @@
|
||||
import { RFRPUtility } from "../../rfrp-utility.js";
|
||||
|
||||
// Our Item Sheet extends the default
|
||||
export default class RMSSSkillSheet extends ItemSheet {
|
||||
export default class RMFRPSkillSheet extends ItemSheet {
|
||||
|
||||
// Set the height and width
|
||||
static get defaultOptions() {
|
||||
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||
width: 530,
|
||||
height: 440,
|
||||
template: "systems/fvtt-rolemaster-frp/templates/sheets/skills/rmss-skill-sheet.html",
|
||||
classes: ["rmss", "sheet", "item"]
|
||||
template: "systems/fvtt-rolemaster-frp/templates/sheets/skills/rmfrp-skill-sheet.html",
|
||||
classes: ["rmfrp", "sheet", "item"]
|
||||
});
|
||||
}
|
||||
|
||||
// If our sheet is called here it is.
|
||||
get template() {
|
||||
return "systems/fvtt-rolemaster-frp/templates/sheets/skills/rmss-skill-sheet.html";
|
||||
return "systems/fvtt-rolemaster-frp/templates/sheets/skills/rmfrp-skill-sheet.html";
|
||||
}
|
||||
|
||||
// Make the data available to the sheet template
|
||||
@ -35,11 +35,11 @@ export default class RMSSSkillSheet extends ItemSheet {
|
||||
editable: this.isEditable,
|
||||
item: baseData.item,
|
||||
system: baseData.item.system,
|
||||
config: CONFIG.rmss,
|
||||
config: CONFIG.rmfrp,
|
||||
owned_skillcats: ownedSkillCategories,
|
||||
enrichedDescription: enrichedDescription,
|
||||
selected_skillcat: selectedSkillCategory,
|
||||
designations: CONFIG.rmss.skill_designations
|
||||
designations: CONFIG.rmfrp.skill_designations
|
||||
};
|
||||
|
||||
return sheetData;
|
Reference in New Issue
Block a user