Atrinik Server  4.0
Functions
power_crystal.c File Reference
#include <global.h>
#include <object.h>
#include <object_methods.h>

Go to the source code of this file.

Functions

static int apply_func (object *op, object *applier, int aflags)
 
 OBJECT_TYPE_INIT_DEFINE (power_crystal)
 

Detailed Description

Handles code related to power crystals.

Power crystals, when applied, either suck mana from the applier, if he's at full spellpoints, or give him mana, if it's got spellpoints stored.

Author
Alex Tokar

Definition in file power_crystal.c.

Function Documentation

static int apply_func ( object op,
object applier,
int  aflags 
)
static

Applies an object.

Parameters
opThe object to apply.
applierThe object that executes the apply action.
aflagsSpecial (always apply/unapply) flags.

Definition at line 42 of file power_crystal.c.

OBJECT_TYPE_INIT_DEFINE ( power_crystal  )

Initialize the power crystal type object methods.

Definition at line 68 of file power_crystal.c.