1
0
Python-ConsoleGame-WizardsDuel/game_config.py
Kwarde 907581eb29
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 :')
2024-01-19 07:48:11 +01:00

19 lines
800 B
Python

##
## Player config
##
MIN_USERNAME_LEN = 2 # Minimum length of usernames
MAX_PLAYER_HEALTH = 1000 # Maximum health
MAX_STUNNED_ROUNDS = 10 # Max amount of rounds a player can be stunned
##
## Spells config
##
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 = 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