Skip to content

Commit

Permalink
fix(core): load all core icons at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Mar 19, 2023
1 parent e8adc52 commit 735cd3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/services/content.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,12 @@ export class ContentService {

[
'settings', 'level', 'resources', 'inventory', 'equipment', 'time',
'dungeon-tile', 'dungeon-wall', 'dungeon-heal', 'dungeon-stairs', 'me'
'dungeon-tile', 'dungeon-wall', 'dungeon-heal', 'dungeon-stairs', 'dungeon-chest', 'me',
'fishing', 'foraging', 'hunting', 'logging', 'mining',
'alchemy', 'blacksmithing', 'cooking', 'jewelcrafting', 'weaving',
'farming', 'prospecting', 'combat', 'mercantile'
].forEach(x => icons.add(x));

Object.values(this.abilities).forEach(x => icons.add(x.icon));
Object.values(this.enemies).forEach(x => icons.add(x.icon));
Object.values(this.threats).forEach(x => icons.add(x.icon));
Expand Down

0 comments on commit 735cd3e

Please sign in to comment.