1
0
Fork 0

minor copy fixes

This commit is contained in:
Sean Sube 2024-06-03 21:36:59 -05:00
parent 0927259ece
commit 1e6c5df462
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
4 changed files with 7 additions and 5 deletions

View File

@ -128,7 +128,7 @@ export function WorldDetails(props: WorldDetailsProps) {
Theme: {world.theme} Theme: {world.theme}
</Typography> </Typography>
<Typography variant='body2'> <Typography variant='body2'>
Order: Turn Order:
</Typography> </Typography>
<ol> <ol>
{world.order.map((name) => ( {world.order.map((name) => (

View File

@ -29,7 +29,7 @@ export function EnumParameterItem(props: NumberParameterProps | StringParameterP
label={name} label={name}
variant="outlined" variant="outlined"
defaultValue={defaultValue} defaultValue={defaultValue}
onChange={(event) => setParameter(event.target.value)} onChange={(event) => (setParameter as (value: number | string) => void)(event.target.value)}
> >
{enumValues.map((value) => <MenuItem value={value}>{value}</MenuItem>)} {enumValues.map((value) => <MenuItem value={value}>{value}</MenuItem>)}
</TextField>; </TextField>;

View File

@ -140,7 +140,7 @@ def action_move(direction: str) -> str:
def action_take(item: 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: Args:
item: The name of the item to take. 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: 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: Args:
character: The name of the character to give the item to. 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: 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: Args:
item: The name of the item to drop. item: The name of the item to drop.

View File

@ -103,6 +103,8 @@ class AdventureClient(Client):
await message.channel.send(world_message) await message.channel.send(world_message)
return return
# TODO: command to list available characters
if content.startswith("!help"): if content.startswith("!help"):
await message.channel.send( await message.channel.send(
format_prompt("discord_help", bot_name=config.bot.discord.name_command) format_prompt("discord_help", bot_name=config.bot.discord.name_command)