| 2754 | } |
| 2755 | |
| 2756 | void OperateShrineSpiritual(Player &player) |
| 2757 | { |
| 2758 | if (&player != MyPlayer) |
| 2759 | return; |
| 2760 | |
| 2761 | for (int8_t &itemIndex : player.InvGrid) { |
| 2762 | if (itemIndex == 0) { |
| 2763 | Item &goldItem = player.InvList[player._pNumInv]; |
| 2764 | MakeGoldStack(goldItem, 5 * leveltype + GenerateRnd(10 * leveltype)); |
| 2765 | player._pNumInv++; |
| 2766 | itemIndex = player._pNumInv; |
| 2767 | |
| 2768 | player._pGold += goldItem._ivalue; |
| 2769 | } |
| 2770 | } |
| 2771 | |
| 2772 | InitDiabloMsg(EMSG_SHRINE_SPIRITUAL); |
| 2773 | } |
| 2774 | |
| 2775 | void OperateShrineSpooky(const Player &player) |
| 2776 | { |
no test coverage detected