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

Function CanUseStaff

Source/inv.cpp:945–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943}
944
945bool CanUseStaff(Item &staff, SpellID spell)
946{
947 return !staff.isEmpty()
948 && IsAnyOf(staff._iMiscId, IMISC_STAFF, IMISC_UNIQUE)
949 && staff._iSpell == spell
950 && staff._iCharges > 0;
951}
952
953void StartGoldDrop()
954{

Callers 3

ConsumeStaffChargeFunction · 0.85
StartSpellFunction · 0.85
CheckPlrSpellFunction · 0.85

Calls 2

IsAnyOfFunction · 0.85
isEmptyMethod · 0.80

Tested by

no test coverage detected