1
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-11 15:43:32 +08:00
parent f19e482c8f
commit 0981d6ee1b
78 changed files with 1102 additions and 8510 deletions

View File

@@ -22,11 +22,14 @@ import {
buildCustomWorldPlayableCharacters,
getCharacterHomeSceneId,
getCharacterNpcSceneIds,
PRESET_CHARACTERS,
ROLE_TEMPLATE_CHARACTERS,
} from './characterPresets';
import { resolveCustomWorldNpcMonsterPreset } from './customWorldNpcMonsters';
import { getCustomWorldMonsterPresetPool } from './customWorldNpcMonsters';
import { getRuntimeCustomWorldProfile, resolveRuleWorldType } from './customWorldRuntime';
import {
getRuntimeCustomWorldProfile,
resolveCompatibilityTemplateWorldType,
} from './customWorldRuntime';
import {
resolveCustomWorldCampSceneImage,
resolveCustomWorldLandmarkImageMap,
@@ -111,7 +114,8 @@ function buildImagePath(packName: string, imageNumber: number) {
}
function collectWorldImagePool(worldType: WorldType, requiredCount: number) {
const resolvedWorldType = resolveRuleWorldType(worldType) ?? WorldType.WUXIA;
const resolvedWorldType =
resolveCompatibilityTemplateWorldType(worldType) ?? WorldType.WUXIA;
const refs: string[] = [];
let globalIndex = 0;
@@ -571,7 +575,7 @@ function resolveSceneNpcGender(
function buildCharacterNpcPool(sceneId: string, worldType: WorldType) {
const npcs: SceneNpc[] = [];
for (const character of PRESET_CHARACTERS) {
for (const character of ROLE_TEMPLATE_CHARACTERS) {
const characterId = character.id;
const sceneIds = getCharacterNpcSceneIds(worldType, characterId);
if (sceneIds.includes(sceneId)) {