forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
e284f4fc76
commit
15a5254380
52 files changed
+637
-80
No files matched your search
@@ -7,12 +7,16 @@ import { preloadAbilityCatalogsForClasses } from "../game/abilityCatalog";
|
||||
import { useCombatStore } from "../game/combatStore";
|
||||
import { setMobPosition } from "../game/mobRuntimeRegistry";
|
||||
import { CombatSummonPopulation } from "../scene/CombatSummonPopulation";
|
||||
import { preloadShadowfiendMedia } from "../scene/shadowfiendMedia";
|
||||
|
||||
function Preview() {
|
||||
const [status, setStatus] = useState("Casting Shadowfiend…");
|
||||
const [status, setStatus] = useState("Preparing Shadowfiend media…");
|
||||
const canvas = useRef<HTMLCanvasElement | null>(null);
|
||||
useEffect(() => {
|
||||
void preloadAbilityCatalogsForClasses(["priest"]).then(() => {
|
||||
void Promise.all([
|
||||
preloadAbilityCatalogsForClasses(["priest"]),
|
||||
preloadShadowfiendMedia().catch(() => null),
|
||||
]).then(() => {
|
||||
const combat = useCombatStore.getState();
|
||||
combat.initializeCharacter({ classId: "priest", level: 80 });
|
||||
combat.registerMob("shadowfiend-preview-target", {
|
||||
|
||||
Reference in new issue
Block a user