From 53022278c99e086ab29dd1cc564149426294aed7 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Tue, 1 Nov 2022 05:59:17 +0100 Subject: [PATCH] Added ground track to Hunt, added new SChat 2 colors. --- config/default.js | 7 ++++++- src/games/hunt.js | 2 +- src/utils/style.js | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/default.js b/config/default.js index 02548b5..10836f5 100755 --- a/config/default.js +++ b/config/default.js @@ -44,13 +44,18 @@ module.exports = { }, schatColorAliases: { red: 'red', + brown: 'brown', orange: 'orange', + beige: 'beige', yellow: 'yellow', + forest: 'forest', green: 'green', + mint: 'mint', cyan: 'cyan', blue: 'blue', + sky: 'sky', purple: 'purple', - magenta: 'magenta', + violet: 'violet', pink: 'pink', grey: 'shadow', silver: 'shadow', diff --git a/src/games/hunt.js b/src/games/hunt.js index ec600de..088efb8 100644 --- a/src/games/hunt.js +++ b/src/games/hunt.js @@ -138,7 +138,7 @@ function onCommand(args, context) { flower: pickRandom(flowers), target: pickRandom(targets), predator: pickRandom(predators), - track: Array.from({ length: getGuesses(word) }, (value, index) => (index % 2 ? pickRandom(trees) : ' ')), // Em Space to ensure proper spacing in SChat + track: Array.from({ length: getGuesses(word) }, (value, index) => (index % 2 ? pickRandom(trees) : style.brown('…'))), // Em Space to ensure proper spacing in SChat }); renderBoard(context); diff --git a/src/utils/style.js b/src/utils/style.js index 6b0f37e..f2bfaee 100755 --- a/src/utils/style.js +++ b/src/utils/style.js @@ -41,6 +41,7 @@ const styleMethods = (() => { if (config.platform === 'irc') { return { ...styles, + forest: styles.green, code: bypass, }; }