MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / OperateShrineSpiritual

Function OperateShrineSpiritual

Source/objects.cpp:2756–2773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2754}
2755
2756void 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
2775void OperateShrineSpooky(const Player &player)
2776{

Callers 1

OperateShrineFunction · 0.85

Calls 3

MakeGoldStackFunction · 0.85
GenerateRndFunction · 0.85
InitDiabloMsgFunction · 0.85

Tested by

no test coverage detected