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

Go to the source code of this file.


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.

Alex Tokar

Definition in file power_crystal.c.

Function Documentation

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

Applies an object.

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.