lvlmodwm.2da

This file contains a table that determines how the spell level of a spell cast by a wild mage is modified.
Columns indicate a random starting level as determined by the 1D20 roll, rows indicate the wild mage's level.
Values in the table determine how much the spell level of the spell being cast is modified.
For example, a level 5 wild mage casts Magic Missile (spell level 1). A 1D20 rolls 15. The table value to use is 1. Therefore, Magic Missile is cast at spell level 2.
In BG2 ToB we have:

2DA V1.0
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1
2 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 1 1 1 1 1 1
3 -2 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 1 1 1 1 1 1 2
4 -2 -2 -1 -1 -1 -1 -1 -1 0 0 0 0 1 1 1 1 1 1 2 2
5 -3 -2 -2 -1 -1 -1 -1 -1 -1 0 0 1 1 1 1 1 1 2 2 3
6 -3 -3 -2 -2 -1 -1 -1 -1 -1 0 0 1 1 1 1 1 2 2 3 3
7 -4 -3 -3 -2 -2 -1 -1 -1 -1 0 0 1 1 1 1 2 2 3 3 4
8 -4 -4 -3 -3 -2 -2 -1 -1 -1 0 0 1 1 1 2 2 3 3 4 4
9 -5 -4 -4 -3 -3 -2 -2 -1 -1 0 0 1 1 2 2 3 3 4 4 5
10 -5 -4 -4 -3 -3 -2 -2 -1 -1 0 0 1 1 2 2 3 3 4 4 5
11 -5 -4 -4 -3 -3 -2 -2 -1 -1 0 0 1 1 2 2 3 3 4 4 5
12 -5 -4 -4 -3 -3 -2 -2 -1 -1 0 0 1 1 2 2 3 3 4 4 5
13 -5 -4 -4 -3 -3 -2 -2 -1 -1 0 0 1 1 2 2 3 3 4 4 5
14 -5 -4 -4 -3 -3 -2 -2 -1 -1 0 0 1 1 2 2 3 3 4 4 5
15 -5 -4 -4 -3 -3 -2 -2 -1 -1 0 0 1 1 2 2 3 3 4 4 5
16 -5 -4 -4 -3 -3 -2 -2 -1 -1 0 0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