From: xangelo Date: Thu, 22 Jun 2023 17:55:30 +0000 (-0400) Subject: remove unused methods/imports X-Git-Tag: v0.0.1~24 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=4e7c45c41d350591a44b405d49e311d75ca68e7e;p=risinglegends.git remove unused methods/imports --- 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 => {