Crossfire Server, Trunk  R20513
Functions
dragon_focus.c File Reference
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
#include <math.h>
Include dependency graph for dragon_focus.c:

Go to the source code of this file.

Functions

static method_ret dragon_focus_type_apply (ob_methods *context, object *focus, object *applier, int aflags)
 Handles applying food. More...
 
void init_type_dragon_focus (void)
 Initializer for the food object type. More...
 

Function Documentation

static method_ret dragon_focus_type_apply ( ob_methods context,
object focus,
object applier,
int  aflags 
)
static

Handles applying food.

If player is applying, takes care of messages and dragon special food.

Parameters
contextThe method context
focus- The focus to apply
applierThe player attempting to apply the food
aflagsSpecial flags (always apply/unapply)
Returns
METHOD_OK unless failure for some reason.

Definition at line 52 of file dragon_focus.c.

References add_refcount(), obj::animation_id, liv::exp, obj::face, FORCE, free_string(), is_dragon_pl(), METHOD_ERROR, object_find_by_type_and_arch_name(), PLAYER, obj::stats, obj::title, and obj::type.

Referenced by init_type_dragon_focus().

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_dragon_focus ( void  )

Initializer for the food object type.

Definition at line 39 of file dragon_focus.c.

References DRAGON_FOCUS, dragon_focus_type_apply(), and register_apply().

Referenced by register_all_ob_types().

Here is the call graph for this function:

Here is the caller graph for this function: