1
0

Add spells.find_spell_by_name()

This commit is contained in:
Kwarde 2024-01-15 13:09:54 +01:00
parent b9ef609f1c
commit 4eceac132f
2 changed files with 6 additions and 0 deletions

BIN
README.md

Binary file not shown.

View File

@ -91,6 +91,12 @@ spell_none = Spell(__INVALID_SPELL, 0, 0, 0, "(internal) invalid spell", SPELL_T
## ##
## Standalone spell functions ## Standalone spell functions
## ##
def find_spell_by_name(input):
for i in Spell.spellList:
if input.title() == i.name.title():
return i
return spell_none
def print_spells(): def print_spells():
header_spells_useless = "== USELESS SPELLS ==" header_spells_useless = "== USELESS SPELLS =="
header_spells_defensive = "== DEFENSIVE SPELLS ==" header_spells_defensive = "== DEFENSIVE SPELLS =="