Skip to content

Commit

Permalink
closes #435
Browse files Browse the repository at this point in the history
  • Loading branch information
Muttley committed Jun 20, 2024
1 parent 17e8fcc commit 12b8f5d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- [#466] Brahmin Milk item missing its radiation recovery value

#### Chores
- [#435] Deprecate the custom Skill compendium config now Skills are dynamically translated
- [#440] Merge new Polish translation updates from Crowdin
- [#450] Merge new Portuguese/Brazilian translation updates from Crowdin

Expand Down
8 changes: 1 addition & 7 deletions system/src/documents/FalloutActor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -770,14 +770,8 @@ export default class FalloutActor extends Actor {
&& data.items.filter(i => i.type === "skill").length > 0;

if (!alreadyHasSkills) {
let skillsCompendium = game.settings.get(
"fallout", "skillsCompendium"
);

if (!skillsCompendium) skillsCompendium = "fallout.skills";

let packSkills =
await game.packs.get(skillsCompendium).getDocuments();
await game.packs.get("fallout.skills").getDocuments();

update.items = this.items.map(i => i.toObject());

Expand Down
9 changes: 0 additions & 9 deletions system/src/settings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,6 @@ export default function registerSettings() {
default: [],
});

game.settings.register(SYSTEM_ID, "skillsCompendium", {
name: "Skills Compendium",
hint: "Compendium of skills to be used at character's creation. World compendiums should start with the 'world' prefix (ex. world.my-skills). The default compendium is 'fallout.skills'.",
scope: "world",
config: true,
default: "fallout.skills",
type: String,
});

// ----------------
// DEBUG SETTINGS
// ----------------
Expand Down

0 comments on commit 12b8f5d

Please sign in to comment.