1
0
Commit Graph

17 Commits

Author SHA1 Message Date
7cb65f5895 Better import usage, adds game_config.py, adds a debug mode (sets all spell chances to 100%) 2024-01-18 16:43:20 +01:00
1485f171be Make game.py compatible with the new dicts 2024-01-18 16:31:43 +01:00
aea461499c Make player.py compatible with wands and spells dicts 2024-01-18 15:30:08 +01:00
355eab297c Make spells.py compatible with the new dictionary. Also: only import distance from Levenshtein if MAX_LEVENSHTEIN_DISTANCE > 0 2024-01-17 16:50:38 +01:00
c138250c1c FIX: Actually make spell dictionary. ('key': value) and not ('key', value) 2024-01-17 16:14:04 +01:00
89318e7321 Convert spell objects to a dictionary 2024-01-17 16:06:56 +01:00
4a01544ebf Address issues in #6 and #7
FIX: Stunned rounds being off by one (fixes #6)

FIX: Output messages if player is stunned

FIX: Protego working while being stunned (fixes #7)

FIX: Finite Incantatem not working

FIX: (sneakily added this fix without creating an issue) Blinded effect not doing anything
2024-01-16 16:02:35 +01:00
c5f61b178c Finish cast_spell(), few tweaks done 2024-01-15 17:20:03 +01:00
fd8b6567f7 Cast 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) 2024-01-15 15:36:37 +01:00
885f407383 Get player wands, intro to battle, adds spells.random_battle_spell() 2024-01-15 14:56:20 +01:00
5f1cdcfc7f Implement Levenshtein.distance() in spells.find_spell_by_name() 2024-01-15 13:40:34 +01:00
b24ea5b610 Create wands 2024-01-15 13:22:19 +01:00
83c4825651 Initialize pipenv with package levenshtein 2024-01-15 13:11:54 +01:00
4eceac132f Add spells.find_spell_by_name() 2024-01-15 13:09:54 +01:00
b9ef609f1c Add spells.print_spells() 2024-01-15 12:58:29 +01:00
e35cea92bf Add spell objects 2024-01-15 12:52:21 +01:00
c303bfa37e Add Spells class 2024-01-15 12:22:00 +01:00