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

Go to the source code of this file.

Functions

static int check_for_duplicate_ob (object *op, mapstruct *map, int x, int y)
void move_creator (object *op)

Detailed Description

Handles code used for creators.

Definition in file creator.c.


Function Documentation

static int check_for_duplicate_ob ( object op,
mapstruct map,
int  x,
int  y 
) [static]

Search for duplicate object on map at x, y.

A duplicate object is an object that has same name, type and arch.

Parameters:
opObject we're checking against.
mapMap to check on.
xX position.
yY position.
Returns:
1 if there is a duplicate object, 0 otherwise.

Definition at line 41 of file creator.c.

void move_creator ( object op)

Have a creator do its tick.

Parameters:
opThe creator.
Todo:

Check if it works properly with multi arch objects.

Perhaps if other_arch is set try to check for an object in its inventory, and copy any modified values?

Definition at line 62 of file creator.c.