narrat 2.0.9 → 2.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/narrat.es.js CHANGED
@@ -37106,23 +37106,6 @@ const useInventory = defineStore("inventory", {
37106
37106
  }
37107
37107
  }
37108
37108
  });
37109
- const everyObject = (object, predicate) => {
37110
- for (const key in object) {
37111
- if (!predicate(object[key])) {
37112
- return false;
37113
- }
37114
- }
37115
- return true;
37116
- };
37117
- const filterObject = (object, predicate) => {
37118
- const result = {};
37119
- for (const key in object) {
37120
- if (predicate(object[key])) {
37121
- result[key] = object[key];
37122
- }
37123
- }
37124
- return result;
37125
- };
37126
37109
  const useQuests = defineStore("quests", {
37127
37110
  state: () => ({
37128
37111
  quests: {}
@@ -37212,7 +37195,7 @@ const useQuests = defineStore("quests", {
37212
37195
  if (!quest) {
37213
37196
  return false;
37214
37197
  }
37215
- return everyObject(quest.objectives, (objective) => objective.state === "completed");
37198
+ return quest.state === "completed";
37216
37199
  },
37217
37200
  isObjectiveCompleted(questId, objectiveId) {
37218
37201
  const objective = this.getObjective(questId, objectiveId);
@@ -39974,6 +39957,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
39974
39957
  };
39975
39958
  }
39976
39959
  });
39960
+ const filterObject = (object, predicate) => {
39961
+ const result = {};
39962
+ for (const key in object) {
39963
+ if (predicate(object[key])) {
39964
+ result[key] = object[key];
39965
+ }
39966
+ }
39967
+ return result;
39968
+ };
39977
39969
  var questsUi_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => ".quests-modal{width:100%;min-height:50%}.quest-header{display:flex;flex-direction:row;align-items:center}.quest-title{font-size:1.5rem;font-weight:700;margin-bottom:.5rem}.quest-completed{color:var(--completed-quest-title-color)}.quest-in-progress{color:var(--quest-title-color)}.quest-state{font-size:1.25rem;font-weight:700;margin-bottom:.5rem}.quest-description{font-size:1.1rem;text-align:justify;font-style:italic;margin-bottom:.5rem}.quest-objectives-container{margin-left:10px}.quest-objective-completed{color:var(--objective-completed-color);text-decoration:line-through}.quest-objective-in-progress{color:var(--objective-in-progress-color)}.quest-objective-description{font-size:1rem;margin-bottom:.5rem}\n")();
39978
39970
  const _sfc_main$2 = defineComponent({
39979
39971
  setup() {