Skip to content

Commit

Permalink
actually fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 10, 2024
1 parent 2fe40bf commit fc757d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 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 @@ -108,6 +108,7 @@ export class NpcsEditorComponent
}

public addStat(stat: StatType, value = 0) {
if (!stat) return;
const npc = structuredClone(this.editing());
npc.otherStats[stat] = value;
this.editing.set(npc);
Expand All @@ -119,7 +120,8 @@ export class NpcsEditorComponent
this.editing.set(npc);
}

public hasStat(stat: StatType) {
public hasStat(stat: StatType | undefined) {
if (!stat) return false;
return isNumber(this.editing().otherStats[stat]);
}

Expand Down

0 comments on commit fc757d2

Please sign in to comment.