version 1.35 | | version 1.36 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.35 2006/04/06 21:18:36 tchize Exp $"; | | * "$Id: spell_attack.c,v 1.36 2006/05/05 09:26:35 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
* op is the spell object. | | * op is the spell object. |
*/ | | */ |
| | |
void check_spell_knockback(object *op) { | | static void check_spell_knockback(object *op) { |
object *tmp, *tmp2; /* object on the map */ | | object *tmp, *tmp2; /* object on the map */ |
int weight_move; | | int weight_move; |
int frictionmod=2; /*poor man's physics - multipy targets weight by this amount */ | | int frictionmod=2; /*poor man's physics - multipy targets weight by this amount */ |
| | |
* is the first piece of the fork. | | * is the first piece of the fork. |
*/ | | */ |
| | |
void forklightning(object *op, object *tmp) { | | static void forklightning(object *op, object *tmp) { |
int new_dir=1; /* direction or -1 for left, +1 for right 0 if no new bolt */ | | int new_dir=1; /* direction or -1 for left, +1 for right 0 if no new bolt */ |
int t_dir; /* stores temporary dir calculation */ | | int t_dir; /* stores temporary dir calculation */ |
mapstruct *m; | | mapstruct *m; |
| | |
* poison cloud ball, etc. op is the object to | | * poison cloud ball, etc. op is the object to |
* explode. | | * explode. |
*/ | | */ |
void explode_bullet(object *op) | | static void explode_bullet(object *op) |
{ | | { |
tag_t op_tag = op->count; | | tag_t op_tag = op->count; |
object *tmp, *owner; | | object *tmp, *owner; |
| | |
| | |
| | |
/* drops an object based on what is in the cone's "other_arch" */ | | /* drops an object based on what is in the cone's "other_arch" */ |
void cone_drop(object *op) { | | static void cone_drop(object *op) { |
object *new_ob = arch_to_object(op->other_arch); | | object *new_ob = arch_to_object(op->other_arch); |
| | |
new_ob->x = op->x; | | new_ob->x = op->x; |
| | |
* this info is used for blocked magic/unholy spaces. | | * this info is used for blocked magic/unholy spaces. |
*/ | | */ |
| | |
object *get_pointed_target(object *op, int dir, int range, int type) { | | static object *get_pointed_target(object *op, int dir, int range, int type) { |
object *target; | | object *target; |
sint16 x,y; | | sint16 x,y; |
int dist, mflags; | | int dist, mflags; |
| | |
* give them the capability to have an inventory. b.t. | | * give them the capability to have an inventory. b.t. |
*/ | | */ |
| | |
int make_object_glow(object *op, int radius, int time) { | | static int make_object_glow(object *op, int radius, int time) { |
object *tmp; | | object *tmp; |
| | |
/* some things are unaffected... */ | | /* some things are unaffected... */ |