[Package Index | Mudlib Index | Effect Index]
File /obj/monster/basic_vampire.c
This file contains all the information relevant to creating a
vampire npc.
Written by Archana
Inherits
This class inherits the following classes /obj/monster.cIncludes
This class includes the following files /include/weather.hMethod index
- check_daylight()
This checks whether the vampire is outside during the day and destroys it if
it is.
- do_brandish(object *)
Brandishes a holy symbol at the vampire.
- do_breathe(object)
Breathe on the vampire.
- do_check_frog()
This makes the frog spell destroy vampires.
- second_life()
This generates a pile of ash when a vampire dies.
Public Functions
These are functions that everyone can access.
-
check_daylight
void check_daylight()
This checks whether the vampire is outside during the day and destroys it if
it is.
-
do_brandish
int do_brandish(object * obs)
Brandishes a holy symbol at the vampire.
- Parameters:
obs - the holy symbol
- Returns:
1 on success, 0 on failure
-
do_breathe
int do_breathe(object thing)
Breathe on the vampire. Damages it if one has garlic breath.
- Returns:
1 on success, 0 on failure
-
do_check_frog
void do_check_frog()
This makes the frog spell destroy vampires. It checks for the frog effect
and dests the vampire if it is present.
-
second_life
object second_life()
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.
- Returns:
The pile of ash that serves as the corpse