Atrinik Server  4.0
Functions
arrow.h File Reference

Go to the source code of this file.

Functions

int16_t arrow_get_wc (object *op, object *bow, object *arrow)
 
int16_t arrow_get_damage (object *op, object *bow, object *arrow)
 
objectarrow_find (object *op, shstr *type)
 

Detailed Description

Arrow related header file.

Definition in file arrow.h.

Function Documentation

object* arrow_find ( object op,
shstr *  type 
)

Extended find arrow version, using tag and containers.

Find an arrow in the inventory and after that in the right type container (quiver).

Parameters
opPlayer.
typeType of the ammunition (arrows, bolts, etc). Can be NULL.
Returns
Pointer to the arrow, NULL if not found.

Definition at line 294 of file arrow.c.

int16_t arrow_get_damage ( object op,
object bow,
object arrow 
)

Calculate arrow's damage.

Parameters
opPlayer.
bowBow used.
arrowArrow.
Returns
The arrow's damage.

Definition at line 237 of file arrow.c.

int16_t arrow_get_wc ( object op,
object bow,
object arrow 
)

Calculate arrow's wc.

Parameters
opPlayer.
bowBow used.
arrowArrow.
Returns
The arrow's wc.

Definition at line 200 of file arrow.c.