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

Function GetSpellStaffLevel

Source/spells.cpp:339–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339int GetSpellStaffLevel(SpellID s)
340{
341 if (gbIsSpawn) {
342 switch (s) {
343 case SpellID::StoneCurse:
344 case SpellID::Guardian:
345 case SpellID::Golem:
346 case SpellID::Apocalypse:
347 case SpellID::Elemental:
348 case SpellID::BloodStar:
349 case SpellID::BoneSpirit:
350 return -1;
351 default:
352 break;
353 }
354 }
355
356 if (!gbIsHellfire && s > SpellID::LastDiablo)
357 return -1;
358
359 return GetSpellData(s).sStaffLvl;
360}
361
362} // namespace devilution

Callers 3

RemoveInvalidItemFunction · 0.85
GetStaffSpellFunction · 0.85
RechargeItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected