Skip to content

Commit

Permalink
fix(item): add blank item stats for reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Apr 1, 2023
1 parent eb728b6 commit e926c2f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/item-validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const validStats = [
'pickaxeSpeed', 'axeSpeed', 'fishingSpeed', 'scytheSpeed', 'huntingSpeed',
'pickaxeSpeedPercent', 'axeSpeedPercent', 'fishingSpeedPercent', 'scytheSpeedPercent', 'huntingSpeedPercent',
'armor', 'mitigation', 'healing', 'energyHealing', 'attack', 'energyBonus', 'healthBonus', 'health', 'speed',
'healingPerRound', 'healingPerCombat', 'energyPerRound', 'energyPerCombat'
'healingPerRound', 'healingPerCombat', 'energyPerRound', 'energyPerCombat',

'itemStat1', 'itemStat2', 'itemStat3'
];

const validTargets = ['Single', 'Self', 'AllEnemies', 'Ally', 'All'];
Expand Down
2 changes: 1 addition & 1 deletion src/app/helpers/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function defaultStatsZero(): Record<Stat, number> {
[Stat.HealingPerRound]: 0,
[Stat.HealingPerCombat]: 0,
[Stat.EnergyPerRound]: 0,
[Stat.EnergyPerCombat]: 0
[Stat.EnergyPerCombat]: 0,
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export enum Stat {
HealingPerRound = 'healingPerRound',
HealingPerCombat = 'healingPerCombat',
EnergyPerRound = 'energyPerRound',
EnergyPerCombat = 'energyPerCombat',
EnergyPerCombat = 'energyPerCombat'
}

export enum ItemType {
Expand Down

0 comments on commit e926c2f

Please sign in to comment.