Update skill sheet
This commit is contained in:
+3
-5
@@ -53,9 +53,7 @@ Hooks.once("init", function () {
|
||||
armor: models.PrismRPGArmor,
|
||||
shield: models.PrismRPGShield,
|
||||
spell: models.PrismRPGSpell,
|
||||
// Vulnerability: models.PrismRPGVulnerability, // Disabled - Legacy from Lethal Fantasy
|
||||
equipment: models.PrismRPGEquipment,
|
||||
// Miracle: models.PrismRPGMiracle // Disabled - Legacy from Lethal Fantasy, PRISM uses Divine class features instead
|
||||
race: models.PrismRPGRace,
|
||||
class: models.PrismRPGClass,
|
||||
"character-path": models.PrismRPGCharacterPath,
|
||||
@@ -69,7 +67,6 @@ Hooks.once("init", function () {
|
||||
foundry.documents.collections.Items.unregisterSheet("core", foundry.appv1.sheets.ActorSheet)
|
||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGSkillSheet, { types: ["skill"], makeDefault: true })
|
||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGRacialAbilitySheet, { types: ["racial-ability"], makeDefault: true })
|
||||
// Foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGVulnerabilitySheet, { types: ["vulnerability"], makeDefault: true }) // Disabled - Legacy from Lethal Fantasy
|
||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGWeaponSheet, { types: ["weapon"], makeDefault: true })
|
||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGSpellSheet, { types: ["spell"], makeDefault: true })
|
||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGArmorSheet, { types: ["armor"], makeDefault: true })
|
||||
@@ -78,7 +75,6 @@ Hooks.once("init", function () {
|
||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGRaceSheet, { types: ["race"], makeDefault: true })
|
||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGClassSheet, { types: ["class"], makeDefault: true })
|
||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGCharacterPathSheet, { types: ["character-path"], makeDefault: true })
|
||||
// Foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGMiracleSheet, { types: ["miracle"], makeDefault: true }) // Disabled - Legacy from Lethal Fantasy
|
||||
|
||||
// Other Document Configuration
|
||||
CONFIG.ChatMessage.documentClass = documents.PrismRPGChatMessage
|
||||
@@ -133,9 +129,11 @@ function preLocalizeConfig() {
|
||||
|
||||
for (const choice of choicesToLocalize) {
|
||||
if (CONFIG.PRISMRPG[choice]) {
|
||||
const localized = {}
|
||||
for (const [key, label] of Object.entries(CONFIG.PRISMRPG[choice])) {
|
||||
CONFIG.PRISMRPG[choice][key] = game.i18n.localize(label)
|
||||
localized[key] = game.i18n.localize(label)
|
||||
}
|
||||
CONFIG.PRISMRPG[choice] = localized
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user