Skip to content

Commit

Permalink
actually fix build for realz yo
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 10, 2024
1 parent fc757d2 commit 439535c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/tabs/npcs/npcs-editor/npcs-editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ export class NpcsEditorComponent
return isNumber(this.editing().traitLevels[trait]);
}

public addStat(stat: StatType, value = 0) {
public addStat(stat: StatType | undefined, value = 0) {
if (!stat) return;

const npc = structuredClone(this.editing());
npc.otherStats[stat] = value;
this.editing.set(npc);
Expand Down

0 comments on commit 439535c

Please sign in to comment.