Lines Matching refs:sProto

190 	SpellStuff &sProto = spellBook[s];  in canCast()  local
191 ActorManaID ami = (ActorManaID)(sProto.getManaType()); in canCast()
192 int amt = sProto.getManaAmt(); in canCast()
262 SpellStuff &sProto = spellBook[s]; in castSpell() local
263 if (sProto.isOffensive()) in castSpell()
280 SpellStuff &sProto = spellBook[s]; in implementSpell() local
282 assert(sProto.shouldTarget(spellApplyLocation)); in implementSpell()
284 ActorManaID ami = (ActorManaID)(sProto.getManaType()); in implementSpell()
288 bool r = a->takeMana(ami, sProto.getManaAmt()); in implementSpell()
299 player->skillAdvance(skillIDSpellcraft, sProto.getManaAmt() / 10); in implementSpell()
302 if (!enactor->deductCharge(ami, sProto.getManaAmt())) { in implementSpell()
307 g_vm->_activeSpells->add(new SpellInstance(GetOwner(enactor), target, sProto.getDisplayID())); in implementSpell()
308 sProto.playSound(enactor); in implementSpell()
316 SpellStuff &sProto = spellBook[s]; in implementSpell() local
318 if (sProto.shouldTarget(spellApplyLocation)) { in implementSpell()
321 assert(sProto.shouldTarget(spellApplyTAG)); in implementSpell()
324 ActorManaID ami = (ActorManaID)(sProto.getManaType()); in implementSpell()
328 bool r = a->takeMana(ami, sProto.getManaAmt()); in implementSpell()
339 player->skillAdvance(skillIDSpellcraft, sProto.getManaAmt() / 10); in implementSpell()
342 if (!enactor->deductCharge(ami, sProto.getManaAmt())) { in implementSpell()
347 g_vm->_activeSpells->add(new SpellInstance(GetOwner(enactor), l, sProto.getDisplayID())); in implementSpell()
348 sProto.playSound(enactor); in implementSpell()
356 SpellStuff &sProto = spellBook[s]; in implementSpell() local
358 if (sProto.shouldTarget(spellApplyLocation)) in implementSpell()
360 assert(sProto.shouldTarget(spellApplyObject)); in implementSpell()
362 ActorManaID ami = (ActorManaID)(sProto.getManaType()); in implementSpell()
366 bool r = a->takeMana(ami, sProto.getManaAmt()); in implementSpell()
377 player->skillAdvance(skillIDSpellcraft, sProto.getManaAmt() / 10); in implementSpell()
380 if (!enactor->deductCharge(ami, sProto.getManaAmt())) { in implementSpell()
385 g_vm->_activeSpells->add(new SpellInstance(GetOwner(enactor), target, sProto.getDisplayID())); in implementSpell()
386 sProto.playSound(enactor); in implementSpell()