Import RMFRP tables + properly rename all files

This commit is contained in:
2024-08-15 22:52:36 +02:00
parent fe36edfeff
commit 45ee08e6c2
17 changed files with 92 additions and 47 deletions

View File

@ -1,4 +1,4 @@
import { RFRPUtility } from "../../rfrp-utility.js";
import { RMFRPUtility } from "../../rmfrp-utility.js";
// Our Item Sheet extends the default
export default class RMFRPSkillSheet extends ItemSheet {
@ -72,7 +72,7 @@ export default class RMFRPSkillSheet 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 skillCategories = RFRPUtility.getSkillCategories();
let skillCategories = RMFRPUtility.getSkillCategories();
if (this.item.isEmbedded) {
skillCategories = this.item.parent.items.filter(it => it.type == "skill_category");
}
@ -96,7 +96,7 @@ export default class RMFRPSkillSheet extends ItemSheet {
// Iterate through the owned skill categories and if one of them matches the item id of currently
// selected skill category then set the Skill Category Bonus field to the Total Bonus field of the Skill Category
prepareSelectedSkillCategoryBonus(selected_skillcat) {
let skillC = this.parent?.items || RFRPUtility.getSkillCategories();
let skillC = this.parent?.items || RMFRPUtility.getSkillCategories();
if (skillC) {
let item = skillC.find(it => it.type == "skill_category" && it.name.toLowerCase() == itemData.system.category.toLowerCase());
if (item) {