[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/monster/basic_vampire.c</h2>
This file contains all the information relevant to creating a
vampire npc.
<p>Written by Archana
<h2>Inherits</h2>
This class inherits the following classes <a href="obj.monster.c.shtml">/obj/monster.c</a><h2>Includes</h2>
This class includes the following files <a href="include.weather.h.shtml">/include/weather.h</a><h2>Method index</h2>
<ul>
<li><a href="#check_daylight">check_daylight</a>()<br/>
This checks whether the vampire is outside during the day and destroys it if
it is.
<li><a href="#do_brandish">do_brandish</a>(object *)<br/>
Brandishes a holy symbol at the vampire.
<li><a href="#do_breathe">do_breathe</a>(object)<br/>
Breathe on the vampire.
<li><a href="#do_check_frog">do_check_frog</a>()<br/>
This makes the frog spell destroy vampires.
<li><a href="#second_life">second_life</a>()<br/>
This generates a pile of ash when a vampire dies.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="check_daylight">
check_daylight</a><pre class="autodocfuncdef">
void check_daylight()
</pre><dd><br />
This checks whether the vampire is outside during the day and destroys it if
it is.
<br />

<dt class="autodocfuncname"><a name="do_brandish">
do_brandish</a><pre class="autodocfuncdef">
int do_brandish(object * obs)
</pre><dd><br />
Brandishes a holy symbol at the vampire.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
obs - the holy symbol<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_breathe">
do_breathe</a><pre class="autodocfuncdef">
int do_breathe(object thing)
</pre><dd><br />
Breathe on the vampire.  Damages it if one has garlic breath.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="do_check_frog">
do_check_frog</a><pre class="autodocfuncdef">
void do_check_frog()
</pre><dd><br />
This makes the frog spell destroy vampires.  It checks for the frog effect
and dests the vampire if it is present.
<br />

<dt class="autodocfuncname"><a name="second_life">
second_life</a><pre class="autodocfuncdef">
object second_life()
</pre><dd><br />
This generates a pile of ash when a vampire dies.  Note that the return
type of object is correct since we are returning the ash, which serves as
the vampire's corpse, and do_death() needs to know about it so it can return
it.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />The pile of ash that serves as the corpse
<br /><br />
<br /></dl>

</dl>
[an error occurred while processing this directive]

