Import RMFRP tables + properly rename all files

This commit is contained in:
2024-08-15 22:25:07 +02:00
parent aad90144fe
commit fe36edfeff
110 changed files with 158657 additions and 462 deletions

View File

@ -1,12 +1,12 @@
export default class RMSSPlayerSheet extends ActorSheet {
export default class RMFRPPlayerSheet extends ActorSheet {
// Override Default Options, Set CSS Classes, Set Default Sheet, Set up Sheet Tabs
static get defaultOptions() {
return foundry.utils.mergeObject(super.defaultOptions, {
width: 860,
height: 780,
template: "systems/fvtt-rolemaster-frp/templates/sheets/actors/rmss-character-sheet.html",
classes: ["rmss", "sheet", "actor"],
template: "systems/fvtt-rolemaster-frp/templates/sheets/actors/rmfrp-character-sheet.html",
classes: ["rmfrp", "sheet", "actor"],
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "features" }]
});
}
@ -128,7 +128,7 @@ export default class RMSSPlayerSheet extends ActorSheet {
}
_prepareItems(context) {
console.log(`rmss | rmss_player_sheet.js | Preparing items for: ${this.name}`);
console.log(`rmfrp | rmfrp_player_sheet.js | Preparing items for: ${this.name}`);
// Initialize containers.
const gear = [];
const playerskill= [];
@ -218,7 +218,7 @@ export default class RMSSPlayerSheet extends ActorSheet {
html.find(".item-roll").click(ev => {
const item = this.actor.items.get(ev.currentTarget.getAttribute("data-item-id"));
new game.rmss.applications.RMSSToolsDiceRoller(item, this.actor).render(true);
new game.rmfrp.applications.RMFRPToolsDiceRoller(item, this.actor).render(true);
});
// -------------------------------------------------------------
@ -244,7 +244,7 @@ export default class RMSSPlayerSheet extends ActorSheet {
selectOptions[pack.metadata.id] = pack.metadata.label;
}
}
new game.rmss.applications.RMSSToolsSCImporter(selectOptions, this.actor).render(true);
new game.rmfrp.applications.RMFRPToolsSCImporter(selectOptions, this.actor).render(true);
});
// Check/Uncheck Favorite Skill

View File

@ -1,4 +1,4 @@
export default class RMSSActorSheetConfig extends FormApplication {
export default class RMFRPActorSheetConfig extends FormApplication {
constructor(selectOptions, character) {
super();

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
export default class RMSSToolsDiceRoller extends FormApplication {
export default class RMFRPToolsDiceRoller extends FormApplication {
constructor(item, actor) {
super();
this.item = foundry.utils.duplicate(item);
@ -33,7 +33,7 @@ export default class RMSSToolsDiceRoller extends FormApplication {
characterBonus: this.characterBonus,
selectOptions: this.rollType,
woundsModifier: this.actor.system.modifiers.woundsModifier,
config: CONFIG.rmss,
config: CONFIG.rmfrp,
difficulty: 0,
combatSituation: 0,
lightningModifier: 0,

View File

@ -1,6 +1,6 @@
import { RFRPUtility } from "../../rfrp-utility.js";
export default class RMSSToolsSCImporter extends FormApplication {
export default class RMFRPToolsSCImporter extends FormApplication {
constructor(selectOptions, character) {
super();

View File

@ -1,19 +1,19 @@
// Our Item Sheet extends the default
export default class RMSSWeaponSheet extends ItemSheet {
export default class RMFRPArmorSheet 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/items/rmss-weapon-sheet.html",
classes: ["rmss", "sheet", "item"]
template: "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-armor-sheet.html",
classes: ["rmfrp", "sheet", "item"]
});
}
// If our sheet is called here it is.
get template() {
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmss-weapon-sheet.html";
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-armor-sheet.html";
}
// Make the data available to the sheet template
@ -27,7 +27,7 @@ export default class RMSSWeaponSheet extends ItemSheet {
editable: this.isEditable,
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmss,
config: CONFIG.rmfrp,
enrichedDescription: enrichedDescription
};

View File

@ -1,19 +1,19 @@
// Our Item Sheet extends the default
export default class RMSSHerbAndPoisonSheet extends ItemSheet {
export default class RMFRPHerbAndPoisonSheet 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/items/rmss-herb-or-poison-sheet.html",
classes: ["rmss", "sheet", "item"]
template: "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-herb-or-poison-sheet.html",
classes: ["rmfrp", "sheet", "item"]
});
}
// If our sheet is called here it is.
get template() {
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmss-herb-or-poison-sheet.html";
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-herb-or-poison-sheet.html";
}
// Make the data available to the sheet template
@ -27,7 +27,7 @@ export default class RMSSHerbAndPoisonSheet extends ItemSheet {
editable: this.isEditable,
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmss,
config: CONFIG.rmfrp,
enrichedDescription: enrichedDescription
};

View File

@ -1,19 +1,19 @@
// Our Item Sheet extends the default
export default class RMSSArmorSheet extends ItemSheet {
export default class RMFRPItemSheet 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/items/rmss-armor-sheet.html",
classes: ["rmss", "sheet", "item"]
template: "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-item-sheet.html",
classes: ["rmfrp", "sheet", "item"]
});
}
// If our sheet is called here it is.
get template() {
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmss-armor-sheet.html";
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-item-sheet.html";
}
// Make the data available to the sheet template
@ -27,7 +27,7 @@ export default class RMSSArmorSheet extends ItemSheet {
editable: this.isEditable,
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmss,
config: CONFIG.rmfrp,
enrichedDescription: enrichedDescription
};

View File

@ -1,19 +1,19 @@
// Our Item Sheet extends the default
export default class RMSSTransportSheet extends ItemSheet {
export default class RMFRPTransportSheet 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/items/rmss-transport-sheet.html",
classes: ["rmss", "sheet", "item"]
template: "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-transport-sheet.html",
classes: ["rmfrp", "sheet", "item"]
});
}
// If our sheet is called here it is.
get template() {
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmss-transport-sheet.html";
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-transport-sheet.html";
}
// Make the data available to the sheet template
@ -27,7 +27,7 @@ export default class RMSSTransportSheet extends ItemSheet {
editable: this.isEditable,
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmss,
config: CONFIG.rmfrp,
enrichedDescription: enrichedDescription
};

View File

@ -1,19 +1,19 @@
// Our Item Sheet extends the default
export default class RMSSItemSheet extends ItemSheet {
export default class RMFRPWeaponSheet 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/items/rmss-item-sheet.html",
classes: ["rmss", "sheet", "item"]
template: "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-weapon-sheet.html",
classes: ["rmfrp", "sheet", "item"]
});
}
// If our sheet is called here it is.
get template() {
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmss-item-sheet.html";
return "systems/fvtt-rolemaster-frp/templates/sheets/items/rmfrp-weapon-sheet.html";
}
// Make the data available to the sheet template
@ -27,7 +27,7 @@ export default class RMSSItemSheet extends ItemSheet {
editable: this.isEditable,
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmss,
config: CONFIG.rmfrp,
enrichedDescription: enrichedDescription
};

View File

@ -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;
}

View File

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

View File

@ -1,18 +1,18 @@
// Our Item Sheet extends the default
export default class RMSSSpellSheet extends ItemSheet {
export default class RMFRPSpellSheet extends ItemSheet {
// Set the height and width
static get defaultOptions() {
return foundry.utils.mergeObject(super.defaultOptions, {
width: 530,
height: 440,
classes: ["rmss", "sheet", "item"]
classes: ["rmfrp", "sheet", "item"]
});
}
// If our sheet is called here it is.
get template() {
return "systems/fvtt-rolemaster-frp/templates/sheets/spells/rmss-spell-sheet.html";
return "systems/fvtt-rolemaster-frp/templates/sheets/spells/rmfrp-spell-sheet.html";
}
// Make the data available to the sheet template
@ -26,7 +26,7 @@ export default class RMSSSpellSheet extends ItemSheet {
editable: this.isEditable,
item: baseData.item,
system: baseData.item.system,
config: CONFIG.rmss,
config: CONFIG.rmfrp,
enrichedDescription: enrichedDescription
};