From: xangelo Date: Wed, 9 Aug 2023 15:02:19 +0000 (-0400) Subject: fix: seed equipment info X-Git-Tag: v0.2.7~3 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=bac2f6305d3d80ba80b27a2162af4c9af84e66b0;p=risinglegends.git fix: seed equipment info --- diff --git a/src/server/api.ts b/src/server/api.ts index b996401..b50a9bf 100644 --- a/src/server/api.ts +++ b/src/server/api.ts @@ -43,7 +43,7 @@ import { renderChatMessage } from './views/chat'; // TEMP! import { createMonsters } from '../../seeds/monsters'; import { createAllCitiesAndLocations } from '../../seeds/cities'; -import { createShopItems } from '../../seeds/shop_items'; +import { createShopItems, createShopEquipment } from '../../seeds/shop_items'; import { Item, PlayerItem, ShopItem } from 'shared/items'; import { equip, unequip } from './equipment'; import { HealthPotionSmall } from '../shared/items/health_potion'; @@ -395,6 +395,7 @@ app.post('/chat', authEndpoint, async (req: AuthRequest, res: Response) => { } else if(msg === '/server lmnop refresh-shops') { await createShopItems(); + await createShopEquipment(); message = broadcastMessage('server', 'Refresh shop items'); } else {