Skip to content

Commit

Permalink
fix for #1779
Browse files Browse the repository at this point in the history
"val" of SPELLCASTER bonus = spell level. Set it to expert for archangel.
  • Loading branch information
alexvins committed May 18, 2014
1 parent 6658e17 commit 0e3f592
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/creatures/castle.json
Expand Up @@ -338,7 +338,8 @@
"resurrects" :
{
"type" : "SPELLCASTER",
"subtype" : "spell.resurrection"
"subtype" : "spell.resurrection",
"val" : 3

This comment has been minimized.

Copy link
@exfizik

exfizik May 19, 2014

Perhaps, the magic number 3 should be explained in the code or moved to a self explanotary enum.

This comment has been minimized.

Copy link
@alexvins

alexvins May 20, 2014

Author Member

it is documented here http://wiki.vcmi.eu/index.php?title=List_of_all_bonus_types#SPELLCASTER
Enums for "val" may be good idea and may be not - in most cases val is just nomber, but is not trivial. Will look at it.

},
"spellpoints" :
{
Expand Down

1 comment on commit 0e3f592

@DjWarmonger
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With great flexibility comes great responsibility. We could of course add some more constants for subtypes, but it will never cover (or need to cover) everything modders come up with.
http://wiki.vcmi.eu/index.php?title=Bonus_Format

Please sign in to comment.