From 907581eb29c599fd27f5332644b38889f1222315 Mon Sep 17 00:00:00 2001 From: Kwarde <136697470+KW46@users.noreply.github.com> Date: Fri, 19 Jan 2024 07:48:11 +0100 Subject: [PATCH] Once again, set MAX_LEVENSHTEIN_DISTANCE to 3 in game_config.py No levenshtein installed on my local PC (except via pipenv), but I run tests via vscode without pipenv so I keep disabling this, and then forgetting to put it back when pushing it to dev :') --- game_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game_config.py b/game_config.py index 92de450..25b40b2 100644 --- a/game_config.py +++ b/game_config.py @@ -10,9 +10,9 @@ MAX_STUNNED_ROUNDS = 10 # Max amount of rounds a player can be stunned ## CHANCE_HEAL_PARTLY = 25 # Percentage chance a player is healed with 5% of max health when using a defensive spell CHANCE_HEAL_FULLY = 5 # Percentage chance a player is fully healed when using a defensive spell -MAX_LEVENSHTEIN_DISTANCE = 0 # Max Levenshtein distance (max amount of typos a user can make) before considering a spell fails. Setting this to 0 disables it (and in that case also doesn't require the levenshtein package) +MAX_LEVENSHTEIN_DISTANCE = 3 # Max Levenshtein distance (max amount of typos a user can make) before considering a spell fails. Setting this to 0 disables it (and in that case also doesn't require the levenshtein package) ## ## Misc ## -DEBUG_MODE = False # Enable or disable debug mode. Sets all spell chances to 100% when enabled \ No newline at end of file +DEBUG_MODE = False # Enable or disable debug mode. Sets all spell chances to 100% when enabled