minor copy fixes
This commit is contained in:
parent
0927259ece
commit
1e6c5df462
|
@ -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) => (
|
||||||
|
|
|
@ -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>;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue