Skip to content

Commit

Permalink
#44
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 19, 2024
1 parent 4c2f00d commit 3f7a4d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/helpers/autocontent/lorescrolls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export function cleanOldLoreScrolls(mod: IModKit): void {
mod.items = mod.items.filter((item) => !item.name.includes(LORE_PREFIX));

mod.drops.forEach((droptable) => {
droptable.drops = droptable.drops.filter((item) =>
item.result.includes(LORE_PREFIX)
droptable.drops = droptable.drops.filter(
(item) => !item.result.includes(LORE_PREFIX)
);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<div class="form-row split">
<div class="form-column">
<div class="form-row">
<app-input-floating-label>Shop Purchase Cost</app-input-floating-label>
<app-input-floating-label>Shop Purchase Cost / Base Value</app-input-floating-label>
<input [(ngModel)]="editingData.value" type="number" min="0" placeholder="Enter cost..." class="form-input" />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class RecipesEditorComponent
public ingredients = Array(8)
.fill(undefined)
.map(() => signal<IItemDefinition | undefined>(undefined));
public ozIngredients = Array(2)
public ozIngredients = Array(4)
.fill(undefined)
.map(() => signal<IItemDefinition | undefined>(undefined));

Expand Down Expand Up @@ -60,6 +60,8 @@ export class RecipesEditorComponent
this.requiredClass.set(item.requireClass?.[0]);
this.currentItem.set(this.modService.findItemByName(item.item));

item.ingredients ??= [];

item.ozIngredients ??= [];
item.ozIngredients[0] ??= { filter: '', display: '', ounces: 0 };
item.ozIngredients[1] ??= { filter: '', display: '', ounces: 0 };
Expand Down

0 comments on commit 3f7a4d6

Please sign in to comment.