Final touches

This commit is contained in:
BattleJenkins 2017-11-15 14:58:25 -08:00
parent 7701d5f92b
commit fda565b274

View file

@ -1257,9 +1257,13 @@ Optional values for spells:
max_targets (int): Maximum number of objects that can be targeted by the spell. max_targets (int): Maximum number of objects that can be targeted by the spell.
1 by default - unused if target is "none" or "self" 1 by default - unused if target is "none" or "self"
Any other values specified besides the above will be passed as kwargs to the spellfunc. Any other values specified besides the above will be passed as kwargs to 'spellfunc'.
You can use kwargs to effectively re-use the same function for different but similar You can use kwargs to effectively re-use the same function for different but similar
spells. spells - for example, 'magic missile' and 'flame shot' use the same function, but
behave differently, as they have different damage ranges, accuracy, amount of attacks
made as part of the spell, and so forth. If you make your spell functions flexible
enough, you can make a wide variety of spells just by adding more entries to this
dictionary.
""" """
SPELLS = { SPELLS = {