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

Go to the source code of this file.

Functions

void apply_player_light_refill (object *who, object *op)
void apply_player_light (object *who, object *op)
void apply_lighter (object *who, object *lighter)

Detailed Description

Handles code for light related object types, like lighters, light sources, etc.

Definition in file light.c.


Function Documentation

void apply_lighter ( object who,
object lighter 
)

Designed primarily to light torches/lanterns/etc. Also burns up burnable material too.

Parameters:
whoThe object who applied this.
lighterThe lighter object.
Todo:
This type is currently not used in Atrinik, perhaps make use of it?

Definition at line 416 of file light.c.

void apply_player_light ( object who,
object op 
)

Apply a player light object.

Parameters:
whoThe player.
opThe light object.

Definition at line 110 of file light.c.

void apply_player_light_refill ( object who,
object op 
)

Refill lamps and all refill type light sources from apply_player_light().

The light source must be in the inventory of the player, then he must mark the light source and apply the refill item (lamp oil for example).

Parameters:
whoThe player.
opThe light source.

Definition at line 42 of file light.c.