Go to the source code of this file.
Detailed Description
Arrow and bow related code.
Definition in file arrow.c.
Function Documentation
Extended find arrow version, using tag and containers.
Find an arrow in the inventory and after that in the right type container (quiver).
- Parameters:
-
| op | Player. |
| type | Type of the ammunition (arrows, bolts, etc). |
| tag | Firemode tag. |
- Returns:
- Pointer to the arrow, NULL if not found.
Definition at line 121 of file arrow.c.
Calculate arrow's damage.
- Parameters:
-
| op | Player. |
| bow | Bow used. |
| arrow | Arrow. |
- Returns:
- The arrow's damage.
Definition at line 66 of file arrow.c.
Calculate arrow's wc.
- Parameters:
-
| op | Player. |
| bow | Bow used. |
| arrow | Arrow. |
- Returns:
- The arrow's wc.
Definition at line 48 of file arrow.c.
| void bow_fire |
( |
object * |
op, |
|
|
int |
dir |
|
) |
| |
Player fires a bow.
- Parameters:
-
| op | Object firing. |
| dir | Direction to fire. |
Definition at line 220 of file arrow.c.
| int bow_get_skill |
( |
object * |
bow | ) |
|
Get skill required to use the specified bow object.
- Parameters:
-
| bow | The bow (could actually be a crossbow/sling/etc). |
- Returns:
- Required skill to use the object.
Definition at line 96 of file arrow.c.
Calculate how quickly bow fires its arrow.
- Parameters:
-
- Returns:
- Firing speed.
Definition at line 37 of file arrow.c.
Fix a stopped arrow.
- Parameters:
-
- Returns:
- The arrow object.
Definition at line 349 of file arrow.c.
| void move_arrow |
( |
object * |
op | ) |
|
Move an arrow along its course.
- Parameters:
-
| op | The arrow or thrown object |
Definition at line 415 of file arrow.c.
| void stop_arrow |
( |
object * |
op | ) |
|
What to do when a non-living flying object has to stop.
- Parameters:
-
Definition at line 569 of file arrow.c.