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

Function OperateShrineMagical

Source/objects.cpp:2491–2507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2489}
2490
2491void OperateShrineMagical(const Player &player)
2492{
2493 AddMissile(
2494 player.position.tile,
2495 player.position.tile,
2496 player._pdir,
2497 MissileID::ManaShield,
2498 TARGET_MONSTERS,
2499 player.getId(),
2500 0,
2501 2 * leveltype);
2502
2503 if (&player != MyPlayer)
2504 return;
2505
2506 InitDiabloMsg(EMSG_SHRINE_MAGICAL);
2507}
2508
2509void OperateShrineStone(Player &player)
2510{

Callers 1

OperateShrineFunction · 0.85

Calls 3

AddMissileFunction · 0.85
InitDiabloMsgFunction · 0.85
getIdMethod · 0.65

Tested by

no test coverage detected