|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static object * | spawn_monster (object *monster, object *spawn_point_ob, int range) |
| static int | spawn_point_can_spawn (mapstruct *map, object *monster, int darkness) |
| static void | insert_spawn_monster_loot (object *op, object *monster, object *tmp) |
| void | spawn_point (object *op) |
Handles code for spawn points.
Definition in file spawn_point.c.
Insert a copy of all items the spawn point monster has to the new monster. Takes care about random drop objects.
This will recursively call itself if the item to put to the new monster has an inventory.
Usually these items are put from the map maker inside the spawn monster inventory. Remember that these are additional items to the treasures list ones.
| op | The spawn point object |
| monster | The object where to put the copy of items to |
| tmp | The inventory pointer where we are copying the items from |
Definition at line 256 of file spawn_point.c.
Actually spawn the monster.
| monster | Monster to generate. |
| spawn_point | Spawn point. |
| range | Maximum range the monster can be spawned away. |
Definition at line 38 of file spawn_point.c.
| void spawn_point | ( | object * | op | ) |
Main spawn point processing function.
| op | Spawn point to process. |
Definition at line 307 of file spawn_point.c.
| static int spawn_point_can_spawn | ( | mapstruct * | map, |
| object * | monster, | ||
| int | darkness | ||
| ) | [inline, static] |
Check whether monster can be spawned, depending on the spawn point map's darkness and other factors.
| map | Spawn point's map. |
| monster | The monster to check. |
| darkness | Darkness the monster may spawn int. |
Definition at line 152 of file spawn_point.c.
1.7.4