Skip to content

Commit

Permalink
method naming part-2 electric boogaloo
Browse files Browse the repository at this point in the history
  • Loading branch information
PwQt committed Apr 14, 2024
1 parent 6df2265 commit d0f1771
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scripts/API/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ const API = {
/**
* Update all actor magicitems item flags
*/
async updateItemsOnAllActorsComponentsFlags() {
async updatMagicItemsOnAllActors() {
if (game.user.isGM) {
Logger.info(`Updating components information on all actors`);
Logger.info(`Updating Magic Items information on all actors`);
for (const actor of game.actors) {
Logger.info(`Updating components on actor ${actor.name}`);
Logger.info(`Updating Magic Items on actor ${actor.name}`);
const miFlag = actor.items.filter((i) => !!i.flags[CONSTANTS.MODULE_ID]);
if (miFlag?.length > 0) {
for (const item of miFlag) {
Expand All @@ -152,7 +152,7 @@ const API = {
* Method that updates all compendium items with new Magic Item flags.
* @param {*} compendiumName compendium name fetched from game.packs
*/
async updateAllCompendiumItems(compendiumName) {
async updateMagicItemsOnAllCompendiumItems(compendiumName) {
if (game.user.isGM) {
Logger.info(`Updating all items from compendium '${compendiumName}' with new flags`);
const compendiumItems = await game.packs.get(compendiumName)?.getDocuments();
Expand Down

0 comments on commit d0f1771

Please sign in to comment.