멸망 후 등용장에 현재 임관 모드 적용
This commit is contained in:
@@ -76,6 +76,8 @@ export interface ActionContextWorldRef {
|
||||
|
||||
export interface ActionContextOptions<TArgs extends Record<string, unknown> = Record<string, unknown>> {
|
||||
world: ActionContextWorldState;
|
||||
/** Current game configuration, distinct from the legacy world meta. */
|
||||
worldConfig?: Record<string, unknown>;
|
||||
/** Ref Message::sendRaw stamps the current logical game tick, not the actor turn time. */
|
||||
gameNow?: Date;
|
||||
/** Differential fixtures may point shared message icons at the Ref asset origin. */
|
||||
|
||||
@@ -824,7 +824,11 @@ export const actionContextBuilder: ActionContextBuilder = (base, options) => {
|
||||
const diplomacy = options.worldRef.listDiplomacy();
|
||||
const warConfig = buildWarConfig(options.scenarioConfig, options.unitSet);
|
||||
const aftermathConfig = buildWarAftermathConfig(options.scenarioConfig, warConfig.castleCrewTypeId);
|
||||
const joinModeRaw = options.world.meta?.join_mode ?? options.world.meta?.joinMode;
|
||||
const joinModeRaw =
|
||||
options.worldConfig?.join_mode ??
|
||||
options.worldConfig?.joinMode ??
|
||||
options.world.meta?.join_mode ??
|
||||
options.world.meta?.joinMode;
|
||||
aftermathConfig.joinMode = joinModeRaw === 'onlyRandom' ? 'onlyRandom' : 'full';
|
||||
return {
|
||||
...base,
|
||||
|
||||
Reference in New Issue
Block a user