diff --git a/src/common/rpg/components/variables.ts b/src/common/rpg/components/variables.ts index 157cd79..8a0993d 100644 --- a/src/common/rpg/components/variables.ts +++ b/src/common/rpg/components/variables.ts @@ -35,6 +35,8 @@ export class Variables extends Component { const currentValue = this.variables[key] ?? 0; if (typeof currentValue === 'number' && typeof value === 'number') { this.set({ key, value: currentValue + value }); + } else { + console.warn(`[Variables] increment failed: ${key} is not a number`); } return this.variables; }