Atrinik Server 2.5
Functions
server/rune.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

static void rune_attack (object *op, object *victim)
void spring_trap (object *trap, object *victim)
int trap_see (object *op, object *trap, int level)
int trap_show (object *trap, object *where)
int trap_disarm (object *disarmer, object *trap)
void trap_adjust (object *trap, int difficulty)

Detailed Description

All rune related functions.

Definition in file rune.c.


Function Documentation

static void rune_attack ( object op,
object victim 
) [static]

This function handles those runes which detonate but do not cast spells. Typically, poisoned or diseased runes.

Parameters:
opRune.
victimVictim of the rune.

Definition at line 37 of file rune.c.

void spring_trap ( object trap,
object victim 
)

This function generalizes attacks by runes/traps. This ought to make it possible for runes to attack from the inventory, it'll spring the trap on the victim.

Parameters:
trapTrap that activates.
victimVictim of the trap.

Definition at line 83 of file rune.c.

void trap_adjust ( object trap,
int  difficulty 
)

Adjust trap difficulty to the map. The default traps are too strong for wimpy level 1 players, and unthreatening to anyone of high level.

Parameters:
trapTrap to adjust.
difficultyMap difficulty.

Definition at line 284 of file rune.c.

int trap_disarm ( object disarmer,
object trap 
)

Try to disarm a trap.

Parameters:
disarmerPlayer disarming the trap.
trapTrap to disarm.
Returns:
1 if trap was disarmed, 0 otherwise.

Definition at line 248 of file rune.c.

int trap_see ( object op,
object trap,
int  level 
)

Should op see trap?

Parameters:
opLiving that could spot the trap.
trapTrap that is invisible.
levelLevel.
Return values:
0Trap wasn't spotted.
1Trap was spotted.

Definition at line 183 of file rune.c.

int trap_show ( object trap,
object where 
)

Handles showing of a trap.

Parameters:
trapThe trap.
whereWhere.
Returns:
1 if the trap was shown, 0 otherwise.

Definition at line 208 of file rune.c.