Fix not prefixing chat with line
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
dbacb5d4da
commit
877185aaf5
@ -68,9 +68,7 @@ const ViewCard = ({table, card}) => {
|
||||
case 'progress-year-of-plenty':
|
||||
description = <>
|
||||
<div>Take any <b>2</b> resources from the bank. Add them to your hand. They can be
|
||||
<b>2</b> of the same resource or <b>2</b> different resources.</div>
|
||||
<div><b>Unfortunately</b> the current implementation only lets you pick a single
|
||||
resource and you will then get <b>2</b> of those.</div>
|
||||
<b>2</b> of the same resource or <b>1</b> of two differ resources.</div>
|
||||
</>;
|
||||
break;
|
||||
};
|
||||
|
@ -1557,7 +1557,7 @@ router.put("/:id/:action/:value?", async (req, res) => {
|
||||
return sendGame(req, res, game, error);
|
||||
case 'chat':
|
||||
const chat = req.body;
|
||||
addChatMessage(game, session, chat.message);
|
||||
addChatMessage(game, session, `${session.name}: ${chat.message}`);
|
||||
/* Chat messages can set game flags and fields */
|
||||
const parts = chat.message.match(/^set +([^ ]*) +(.*)$/i);
|
||||
if (parts && parts.length === 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user