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';
});
}
-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 => {