fix(mystery): wait verb routes to encounters; chip list reflects dynamic items
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,7 +39,7 @@ function append(state: GameState, lines: TranscriptLine[]): GameState {
|
||||
return { ...state, transcript: transcript.slice(-TRANSCRIPT_CAP) }
|
||||
}
|
||||
|
||||
function getItemsInRoom(state: GameState, world: World, roomId: string): string[] {
|
||||
export function getItemsInRoom(state: GameState, world: World, roomId: string): string[] {
|
||||
const baseItems = world.rooms[roomId]?.items ?? []
|
||||
const dropped = (state.roomState[roomId]?.['droppedItems'] as string[] | undefined) ?? []
|
||||
const taken = (state.roomState[roomId]?.['takenItems'] as string[] | undefined) ?? []
|
||||
|
||||
@@ -72,7 +72,7 @@ export function applyVerbToEncounter(
|
||||
if (command.kind === 'verb-target') {
|
||||
verb = command.verb
|
||||
targetId = command.target.canonical
|
||||
} else if (command.kind === 'verb-only' && command.verb !== 'inventory' && command.verb !== 'wait') {
|
||||
} else if (command.kind === 'verb-only' && command.verb !== 'inventory') {
|
||||
verb = command.verb
|
||||
} else {
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user