1
0

Fix not prefixing chat with line

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-03-06 18:39:45 -08:00
parent dbacb5d4da
commit 877185aaf5
2 changed files with 3 additions and 5 deletions

View File

@ -68,10 +68,8 @@ const ViewCard = ({table, card}) => {
case 'progress-year-of-plenty': case 'progress-year-of-plenty':
description = <> description = <>
<div>Take any <b>2</b> resources from the bank. Add them to your hand. They can be <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> <b>2</b> of the same resource or <b>1</b> of two differ 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>
</>;
break; break;
}; };

View File

@ -1557,7 +1557,7 @@ router.put("/:id/:action/:value?", async (req, res) => {
return sendGame(req, res, game, error); return sendGame(req, res, game, error);
case 'chat': case 'chat':
const chat = req.body; const chat = req.body;
addChatMessage(game, session, chat.message); addChatMessage(game, session, `${session.name}: ${chat.message}`);
/* Chat messages can set game flags and fields */ /* Chat messages can set game flags and fields */
const parts = chat.message.match(/^set +([^ ]*) +(.*)$/i); const parts = chat.message.match(/^set +([^ ]*) +(.*)$/i);
if (parts && parts.length === 3) { if (parts && parts.length === 3) {