|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static int | container_trap (object *op, object *container) |
| int | esrv_apply_container (object *op, object *sack) |
| int | container_link (player *pl, object *sack) |
| int | container_unlink (player *pl, object *sack) |
| void | free_container_monster (object *monster, object *op) |
| int | check_magical_container (object *op, object *container) |
Handles code for handling containers.
Definition in file container.c.
We don't to allow putting magical container inside another magical container, so we check for it here.
| op | Object being put into the container. |
| container | The container. |
Definition at line 498 of file container.c.
A player has opened a container - link him to the list of players which have (perhaps) it opened too.
| pl | The player object. |
| sack | The container. |
Definition at line 198 of file container.c.
Examine the items in a container which gets readied or opened by a player.
Explode or trigger every trap and rune in there and free trapped monsters.
| op | The player opening the container. |
| container | The container object. |
Definition at line 468 of file container.c.
Remove a player from the container list.
Unlinking is a bit more tricky - pl OR sack can be NULL.
| pl | The player object. If NULL, we unlink all players from the container identified by 'sack'. |
| sack | The container object. If NULL, unlink this container from player object identified by 'pl'. |
Definition at line 287 of file container.c.
Handle apply on containers.
| op | The player. |
| sack | The container the player is opening or closing. |
Definition at line 43 of file container.c.
Frees a monster trapped in container when opened by a player.
| monster | The monster trapped. |
| op | The player that opened the container. |
Definition at line 428 of file container.c.
1.7.4