… | |
… | |
37 | /* this function checks to see if a spell pushes objects as well |
37 | /* this function checks to see if a spell pushes objects as well |
38 | * as flies over and damages them (only used for cones for now) |
38 | * as flies over and damages them (only used for cones for now) |
39 | * but moved here so it could be applied to bolts too |
39 | * but moved here so it could be applied to bolts too |
40 | * op is the spell object. |
40 | * op is the spell object. |
41 | */ |
41 | */ |
42 | void |
42 | static void |
43 | check_spell_knockback (object *op) |
43 | check_spell_knockback (object *op) |
44 | { |
44 | { |
45 | int weight_move; |
45 | int weight_move; |
46 | int frictionmod = 2; /*poor man's physics - multipy targets weight by this amount */ |
46 | int frictionmod = 2; /*poor man's physics - multipy targets weight by this amount */ |
47 | |
47 | |
… | |
… | |
389 | |
389 | |
390 | /* Causes an object to explode, eg, a firebullet, |
390 | /* Causes an object to explode, eg, a firebullet, |
391 | * poison cloud ball, etc. op is the object to |
391 | * poison cloud ball, etc. op is the object to |
392 | * explode. |
392 | * explode. |
393 | */ |
393 | */ |
394 | void |
394 | static void |
395 | explode_bullet (object *op) |
395 | explode_bullet (object *op) |
396 | { |
396 | { |
397 | object *tmp, *owner; |
397 | object *tmp, *owner; |
398 | |
398 | |
399 | if (!op->other_arch) |
399 | if (!op->other_arch) |
… | |
… | |
687 | * CONE RELATED FUNCTIONS |
687 | * CONE RELATED FUNCTIONS |
688 | * |
688 | * |
689 | *****************************************************************************/ |
689 | *****************************************************************************/ |
690 | |
690 | |
691 | /* drops an object based on what is in the cone's "other_arch" */ |
691 | /* drops an object based on what is in the cone's "other_arch" */ |
692 | void |
692 | static void |
693 | cone_drop (object *op) |
693 | cone_drop (object *op) |
694 | { |
694 | { |
695 | object *new_ob = arch_to_object (op->other_arch); |
695 | object *new_ob = arch_to_object (op->other_arch); |
696 | |
696 | |
697 | new_ob->level = op->level; |
697 | new_ob->level = op->level; |