Import RMFRP tables + properly rename all files
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
import { RFRPUtility } from "../../rfrp-utility.js";
|
||||
import { RMFRPUtility } from "../../rmfrp-utility.js";
|
||||
|
||||
export default class RMFRPToolsSCImporter extends FormApplication {
|
||||
|
||||
@ -50,7 +50,7 @@ export default class RMFRPToolsSCImporter extends FormApplication {
|
||||
|
||||
console.log("Importing New Skills/Skill Categories.");
|
||||
let newDocuments = [];
|
||||
let gameSystem = RFRPUtility.getGameSystem();
|
||||
let gameSystem = RMFRPUtility.getGameSystem();
|
||||
for (const sc of skillCategoryData) {
|
||||
const newitem = await pack.getDocument(sc._id);
|
||||
if (newitem.type === itemType && (newitem.system.game_system === "common" || newitem.system.game_system === gameSystem)) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user