c4bb8f7d80Remove tmp.py: Used it for a quick testrun since I had a confusion with the new dictionaryKwarde2024-01-17 16:52:00 +01:00
355eab297cMake spells.py compatible with the new dictionary. Also: only import distance from Levenshtein if MAX_LEVENSHTEIN_DISTANCE > 0Kwarde2024-01-17 16:50:38 +01:00
c138250c1cFIX: Actually make spell dictionary. ('key': value) and not ('key', value)Kwarde2024-01-17 16:14:04 +01:00
89318e7321Convert spell objects to a dictionaryKwarde2024-01-17 16:06:56 +01:00
9b87f2aa30Merge pull request #11 from KW46/fix-issue-10
Kwarde
2024-01-16 16:46:11 +01:00
7f900a6541FIX: New rounds starting while a player has 0 hp (fixes#10)Kwarde2024-01-16 16:45:43 +01:00
8e96f8d1deMerge pull request #9 from KW46/fix-issue-7
Kwarde
2024-01-16 16:20:34 +01:00
88605ad251Remove damage_modifier (if self.decreased_spell_damage) from spell_crucioKwarde2024-01-16 16:20:21 +01:00
93cfb5caa9Merge pull request #8 from KW46/fix-issue-1
Kwarde
2024-01-16 16:17:37 +01:00
66ef9b3570FIX: Protego working while it was supposed to failKwarde2024-01-16 16:14:54 +01:00
bb6e1239e3FIX: Returning list when using help instead of just queried item. Fixes#1Kwarde2024-01-16 16:06:49 +01:00
fd8b6567f7Cast spells if one of two player fails to cast their spell. Adds player.cast_spell(): Not scripted yet, currently just a placeholder so that cast_spell() prints somethin when called! (and modifies health)Kwarde2024-01-15 15:36:37 +01:00
7f6ccb15efGet player spell from input (or show a help message)Kwarde2024-01-15 15:11:13 +01:00
885f407383Get player wands, intro to battle, adds spells.random_battle_spell()Kwarde2024-01-15 14:56:20 +01:00
7cbcf4dbf4Intro message, ask for player name, improve wand's representation (readability)Kwarde2024-01-15 14:27:08 +01:00
b20532ae4aAdd methods and variables for running gameKwarde2024-01-15 14:11:24 +01:00
5f1cdcfc7fImplement Levenshtein.distance() in spells.find_spell_by_name()Kwarde2024-01-15 13:40:34 +01:00
6a9e3b126aAdd decreased_spell_speed/damage to Player class and cast_spell_result()- used to print outcome message of a spell castKwarde2024-01-15 13:31:26 +01:00