feat: upgrade city stay exploration
This commit is contained in:
@@ -22,7 +22,9 @@ try {
|
||||
cityStayExplorationProfiles,
|
||||
getCityStayExplorationProfile
|
||||
} = await server.ssrLoadModule('/src/game/data/cityStayExploration.ts');
|
||||
const { unitBaseSheetAssetInfo } = await server.ssrLoadModule('/src/game/data/unitAssets.ts');
|
||||
const { explorationCharacterAssetInfo } = await server.ssrLoadModule(
|
||||
'/src/game/data/explorationCharacterAssets.ts'
|
||||
);
|
||||
const { musicTracks, ambienceTracks } = await server.ssrLoadModule('/src/game/audio/audioAssets.ts');
|
||||
|
||||
validateCityStayCollection(cityStayDefinitions, battleScenarios, itemCatalog);
|
||||
@@ -36,7 +38,7 @@ try {
|
||||
cityStayDefinitions,
|
||||
cityStayExplorationProfiles,
|
||||
getCityStayExplorationProfile,
|
||||
unitBaseSheetAssetInfo,
|
||||
explorationCharacterAssetInfo,
|
||||
musicTracks,
|
||||
ambienceTracks
|
||||
);
|
||||
@@ -246,7 +248,7 @@ function validateExplorationProfiles(
|
||||
definitions,
|
||||
profiles,
|
||||
getProfile,
|
||||
unitBaseSheetAssetInfo,
|
||||
explorationCharacterAssetInfo,
|
||||
musicTracks,
|
||||
ambienceTracks
|
||||
) {
|
||||
@@ -366,14 +368,14 @@ function validateExplorationProfiles(
|
||||
if (!knownDirections.has(actor?.direction)) {
|
||||
errors.push(`${actorContext}.direction must be north/east/south/west`);
|
||||
}
|
||||
if (!unitBaseSheetAssetInfo(actor?.textureKey)) {
|
||||
errors.push(`${actorContext}: unknown unit texture "${actor?.textureKey}"`);
|
||||
if (!explorationCharacterAssetInfo(actor?.textureKey)) {
|
||||
errors.push(`${actorContext}: unknown exploration character texture "${actor?.textureKey}"`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (!unitBaseSheetAssetInfo('unit-liu-bei')) {
|
||||
errors.push(`${context}: player texture "unit-liu-bei" is missing`);
|
||||
if (!explorationCharacterAssetInfo('exploration-liu-bei')) {
|
||||
errors.push(`${context}: player texture "exploration-liu-bei" is missing`);
|
||||
}
|
||||
if (!Array.isArray(profile.buildings) || profile.buildings.length !== 3) {
|
||||
errors.push(`${context}.buildings must contain exactly 3 entries`);
|
||||
|
||||
Reference in New Issue
Block a user