Exemple #1
0
const char *mon_spell_lore_description(int spell)
{
	if (!mon_spell_is_valid(spell))
		return "";

	return mon_spell_table[spell].lore_desc;
}
const char *mon_spell_lore_description(int index)
{
	const struct monster_spell *spell = monster_spell_by_index(index);
	if (!mon_spell_is_valid(index))
		return "";

	return spell->lore_desc;
}
Exemple #3
0
int mon_spell_lore_damage(int spell, const monster_race *race, bool know_hp)
{
	int hp;

	if (!mon_spell_is_valid(spell) || !mon_spell_has_damage(spell))
		return 0;

	hp = (know_hp) ? race->avg_hp : 0;
	return mon_spell_dam(spell, hp, race->level, MAXIMISE);
}
int mon_spell_lore_damage(int index, const struct monster_race *race,
						  bool know_hp)
{
	int hp;

	if (!mon_spell_is_valid(index) || !mon_spell_has_damage(index))
		return 0;

	hp = (know_hp) ? race->avg_hp : 0;
	return mon_spell_dam(index, hp, race, MAXIMISE);
}