MCPcopy Create free account
hub / github.com/diasurgical/devilution / GetSpellLevel

Function GetSpellLevel

Source/missiles.cpp:242–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242int GetSpellLevel(int id, int sn)
243{
244 int result;
245
246 if (id == myplr)
247 result = plr[id]._pISplLvlAdd + plr[id]._pSplLvl[sn];
248 else
249 result = 1;
250
251 if (result < 0)
252 result = 0;
253
254 return result;
255}
256
257int GetDirection8(int x1, int y1, int x2, int y2)
258{

Callers 6

CheckSpellFunction · 0.85
DoHealOtherFunction · 0.85
TryIconCursFunction · 0.85
SentfireFunction · 0.85
StartSpellFunction · 0.85
CheckPlrSpellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected