| 3649 | } |
| 3650 | |
| 3651 | BOOL HealerItemOk(int i) |
| 3652 | { |
| 3653 | BOOL result; |
| 3654 | |
| 3655 | result = FALSE; |
| 3656 | if (AllItemsList[i].itype != ITYPE_MISC) |
| 3657 | return FALSE; |
| 3658 | |
| 3659 | if (AllItemsList[i].iMiscId == IMISC_SCROLL && AllItemsList[i].iSpell == SPL_HEAL) |
| 3660 | result = TRUE; |
| 3661 | if (AllItemsList[i].iMiscId == IMISC_SCROLLT && AllItemsList[i].iSpell == SPL_RESURRECT && gbMaxPlayers != 1) |
| 3662 | result = FALSE; |
| 3663 | if (AllItemsList[i].iMiscId == IMISC_SCROLLT && AllItemsList[i].iSpell == SPL_HEALOTHER && gbMaxPlayers != 1) |
| 3664 | result = TRUE; |
| 3665 | |
| 3666 | if (gbMaxPlayers == 1) { |
| 3667 | if (AllItemsList[i].iMiscId == IMISC_ELIXSTR) |
| 3668 | result = TRUE; |
| 3669 | if (AllItemsList[i].iMiscId == IMISC_ELIXMAG) |
| 3670 | result = TRUE; |
| 3671 | if (AllItemsList[i].iMiscId == IMISC_ELIXDEX) |
| 3672 | result = TRUE; |
| 3673 | if (AllItemsList[i].iMiscId == IMISC_ELIXVIT) |
| 3674 | result = TRUE; |
| 3675 | } |
| 3676 | |
| 3677 | if (AllItemsList[i].iMiscId == IMISC_FULLHEAL) // BUGFIX this is a duplicate with the wrong case |
| 3678 | result = TRUE; |
| 3679 | |
| 3680 | if (AllItemsList[i].iMiscId == IMISC_REJUV) |
| 3681 | result = TRUE; |
| 3682 | if (AllItemsList[i].iMiscId == IMISC_FULLREJUV) |
| 3683 | result = TRUE; |
| 3684 | if (AllItemsList[i].iMiscId == IMISC_HEAL) |
| 3685 | result = FALSE; |
| 3686 | if (AllItemsList[i].iMiscId == IMISC_FULLHEAL) |
| 3687 | result = FALSE; |
| 3688 | if (AllItemsList[i].iMiscId == IMISC_MANA) |
| 3689 | result = FALSE; |
| 3690 | if (AllItemsList[i].iMiscId == IMISC_FULLMANA) |
| 3691 | result = FALSE; |
| 3692 | |
| 3693 | return result; |
| 3694 | } |
| 3695 | |
| 3696 | int RndHealerItem(int lvl) |
| 3697 | { |