Go to the source code of this file.
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:
-
| op | Object we're checking against. |
| map | Map to check on. |
| x | X position. |
| y | Y 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:
-
- 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.