From 9988b09e914c9213eea5e1f10c9b0200f2881eda Mon Sep 17 00:00:00 2001 From: Theo Champion Date: Mon, 11 Aug 2025 13:07:52 +0200 Subject: [PATCH] dev: Changed allowed characters to comply more about the current state of the game --- src/map/forbidden_characters.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/map/forbidden_characters.c b/src/map/forbidden_characters.c index a829f53..1173a3d 100644 --- a/src/map/forbidden_characters.c +++ b/src/map/forbidden_characters.c @@ -6,7 +6,7 @@ /* By: kcolin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/07/17 14:18:13 by kcolin #+# #+# */ -/* Updated: 2025/07/17 14:47:34 by kcolin ### ########.fr */ +/* Updated: 2025/08/11 13:05:44 by tchampio ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,11 +14,19 @@ // TODO: use a #define for allowedchars, to prevent needless repetition +#define BONUS // FIXME: Delete me #ifdef BONUS +/* +* 10NSEW are from mandatory part +* M - Mystery box +* Q - Quick Revive perk +* J - Juggernog perk +* D - Double tap perk +*/ bool has_forbidden_characters(char *line) { - static const char *allowedchars = " 10NSEWDdZzsM\n"; + static const char *allowedchars = " 10NSEWMQJD\n"; size_t strsize; int i;