From 4e7c45c41d350591a44b405d49e311d75ca68e7e Mon Sep 17 00:00:00 2001 From: xangelo Date: Thu, 22 Jun 2023 13:55:30 -0400 Subject: [PATCH] remove unused methods/imports --- src/server/api.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/server/api.ts b/src/server/api.ts index e353bde..1bb9ece 100644 --- a/src/server/api.ts +++ b/src/server/api.ts @@ -13,7 +13,7 @@ import { professionList } from '../shared/profession'; import {clearFight, createFight, getMonsterList, loadMonster, loadMonsterFromFight, loadMonsterWithFaction, saveFightState} from './monster'; import {FightRound} from '../shared/fight'; import {addInventoryItem, deleteInventoryItem, getEquippedItems, getInventory, updateAp} from './inventory'; -import {Monster, MonsterForFight, MonsterForList} from '../shared/monsters'; +import {MonsterForFight} from '../shared/monsters'; import {getShopItem } from './shopItem'; import {EquippedItemDetails} from '../shared/equipped'; import {ArmourEquipmentSlot, EquipmentSlot} from '../shared/inventory'; @@ -64,19 +64,6 @@ function setServerStats() { }); } -async function socketSendMonsterList(location_id: number, socket: Socket) { - const monsters: Monster[] = await getMonsterList(location_id); - let data: MonsterForList[] = monsters.map(monster => { - return { - id: monster.id, - name: monster.name, - level: monster.level - } - }); - - socket.emit('explore:fights', data); -} - setTimeout(setServerStats, 5000); io.on('connection', async socket => { -- 2.25.1