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

Go to the source code of this file.

Defines

#define CONV_FROM(xyz)   (xyz->slaying)
#define CONV_TO(xyz)   (xyz->other_arch)
#define CONV_NR(xyz)   ((unsigned long) xyz->stats.sp)
#define CONV_NEED(xyz)   ((unsigned long) xyz->stats.food)

Functions

int convert_item (object *item, object *converter)

Detailed Description

Handles code for operation of converters.

Definition in file converter.c.


Function Documentation

int convert_item ( object item,
object converter 
)

Transforms an item into another item.

Parameters:
itemThe object that triggered the converter - if it isn't of a type accepted by the converter, nothing will happen
converterThe object that is doing the conversion
Returns:
1 if the item got converted, 0 otherwise.

Definition at line 43 of file converter.c.