diff --git a/client/src/details.tsx b/client/src/details.tsx index 349055c..89fcc8b 100644 --- a/client/src/details.tsx +++ b/client/src/details.tsx @@ -128,7 +128,7 @@ export function WorldDetails(props: WorldDetailsProps) { Theme: {world.theme} - Order: + Turn Order:
    {world.order.map((name) => ( diff --git a/client/src/prompt.tsx b/client/src/prompt.tsx index 9aeba13..fccf898 100644 --- a/client/src/prompt.tsx +++ b/client/src/prompt.tsx @@ -29,7 +29,7 @@ export function EnumParameterItem(props: NumberParameterProps | StringParameterP label={name} variant="outlined" defaultValue={defaultValue} - onChange={(event) => setParameter(event.target.value)} + onChange={(event) => (setParameter as (value: number | string) => void)(event.target.value)} > {enumValues.map((value) => {value})} ; diff --git a/taleweave/actions/base.py b/taleweave/actions/base.py index 4d757e0..a7978e2 100644 --- a/taleweave/actions/base.py +++ b/taleweave/actions/base.py @@ -140,7 +140,7 @@ def action_move(direction: str) -> str: def action_take(item: str) -> str: """ - Take an item from the room and put it in your inventory. + Pick up an item from the room and put it in your inventory. Args: item: The name of the item to take. @@ -279,7 +279,7 @@ def action_tell(character: str, message: str) -> str: def action_give(character: str, item: str) -> str: """ - Give an item to another character in the room. + Give an item in your inventory to another character in the room. Args: character: The name of the character to give the item to. @@ -315,7 +315,7 @@ def action_give(character: str, item: str) -> str: def action_drop(item: str) -> str: """ - Drop an item from your inventory into the room. + Drop an item from your inventory and leave it in the current room. Args: item: The name of the item to drop. diff --git a/taleweave/bot/discord.py b/taleweave/bot/discord.py index 08f41dc..d1ce317 100644 --- a/taleweave/bot/discord.py +++ b/taleweave/bot/discord.py @@ -103,6 +103,8 @@ class AdventureClient(Client): await message.channel.send(world_message) return + # TODO: command to list available characters + if content.startswith("!help"): await message.channel.send( format_prompt("discord_help", bot_name=config.bot.discord.name_command)