@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user