forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
6114a2295f
commit
69809f7228
593 files changed
+903643
-40774
No files matched your search
@@ -14,8 +14,9 @@ import type { DungeonDefinition } from "../src/game/dungeonTypes";
|
||||
import { withWowDungeonEnvironment } from "../src/game/wowDungeonEnvironment";
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const { DEFAULT_TEST_DUNGEON_ID } = require("./playtest-defaults.cjs") as {
|
||||
const { DEFAULT_TEST_DUNGEON_ID, FULL_STOCKADE_DUNGEON_ID } = require("./playtest-defaults.cjs") as {
|
||||
DEFAULT_TEST_DUNGEON_ID: string;
|
||||
FULL_STOCKADE_DUNGEON_ID: string;
|
||||
};
|
||||
type Position = readonly [number, number, number];
|
||||
type ProbeDungeon = {
|
||||
@@ -83,7 +84,8 @@ async function navigationGraph(dungeonId: string) {
|
||||
for (const dungeonId of dungeonIds) {
|
||||
const dungeon = requireGeneratedDungeonDefinition(dungeonId);
|
||||
const eligibleBosses = dungeon.bosses.filter((candidate) => !candidate.eventOnly);
|
||||
const bosses = dungeonId === DEFAULT_TEST_DUNGEON_ID ? eligibleBosses : eligibleBosses.slice(0, 1);
|
||||
const bosses = dungeonId === DEFAULT_TEST_DUNGEON_ID || dungeonId === FULL_STOCKADE_DUNGEON_ID
|
||||
? eligibleBosses : eligibleBosses.slice(0, 1);
|
||||
if (!bosses.length) throw new Error(`${dungeonId} has no normal campaign bosses.`);
|
||||
const graph = await navigationGraph(dungeonId);
|
||||
const start = findNearestPartyNavigationSurface(graph, dungeon.entrance.footPosition, 3);
|
||||
|
||||
Reference in new issue
Block a user