| 3549 | } |
| 3550 | |
| 3551 | void WitchBookLevel(int ii) |
| 3552 | { |
| 3553 | int slvl; |
| 3554 | |
| 3555 | if (witchitem[ii]._iMiscId == IMISC_BOOK) { |
| 3556 | witchitem[ii]._iMinMag = spelldata[witchitem[ii]._iSpell].sMinInt; |
| 3557 | slvl = plr[myplr]._pSplLvl[witchitem[ii]._iSpell]; |
| 3558 | while (slvl) { |
| 3559 | witchitem[ii]._iMinMag += 20 * witchitem[ii]._iMinMag / 100; |
| 3560 | slvl--; |
| 3561 | if (witchitem[ii]._iMinMag + 20 * witchitem[ii]._iMinMag / 100 > 255) { |
| 3562 | witchitem[ii]._iMinMag = 255; |
| 3563 | slvl = 0; |
| 3564 | } |
| 3565 | } |
| 3566 | } |
| 3567 | } |
| 3568 | |
| 3569 | void SpawnWitch(int lvl) |
| 3570 | { |
no outgoing calls
no test coverage detected