You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
651 B
23 lines
651 B
/** |
|
* @file spells.h |
|
* |
|
* Interface of functionality for casting player spells. |
|
*/ |
|
#pragma once |
|
|
|
#include "player.h" |
|
|
|
namespace devilution { |
|
|
|
int GetManaAmount(int id, spell_id sn); |
|
void UseMana(int id, spell_id sn); |
|
uint64_t GetSpellBitmask(int spellId); |
|
bool CheckSpell(int id, spell_id sn, spell_type st, bool manaonly); |
|
void EnsureValidReadiedSpell(PlayerStruct &player); |
|
void CastSpell(int id, int spl, int sx, int sy, int dx, int dy, int spllvl); |
|
void DoResurrect(int pnum, int rid); |
|
void DoHealOther(int pnum, int rid); |
|
int GetSpellBookLevel(spell_id s); |
|
int GetSpellStaffLevel(spell_id s); |
|
|
|
} // namespace devilution
|
|
|