Atrinik Server 2.5
Functions
types/spellbook.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

static void spellbook_failure (object *op, int failure, int power)
void apply_spellbook (object *op, object *tmp)

Detailed Description

Handles code for spellbooks.

Definition in file spellbook.c.


Function Documentation

void apply_spellbook ( object op,
object tmp 
)

Apply a spellbook.

Parameters:
opObject applying the spellbook.
tmpThe spellbook.

Definition at line 38 of file spellbook.c.

static void spellbook_failure ( object op,
int  failure,
int  power 
) [static]

Called when we try to learn a spell from spellbook by applying a spellbook in apply_spellbook().

Parameters:
opThe object that applied the spellbook.
failureFailure power.
powerSpell points.

Definition at line 139 of file spellbook.c.