|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| void | cast_magic_storm (object *op, object *tmp, int lvl) |
| int | recharge (object *op) |
| int | cast_create_food (object *op, object *caster, int dir, const char *stringarg) |
| int | probe (object *op) |
| int | cast_wor (object *op, object *caster) |
| int | cast_create_town_portal (object *op) |
| int | cast_destruction (object *op, object *caster, int dam, int attacktype) |
| int | cast_heal_around (object *op, int level, int type) |
| int | cast_heal (object *op, int level, object *target, int spell_type) |
| int | cast_change_attr (object *op, object *caster, object *target, int spell_type) |
| int | create_bomb (object *op, object *caster, int dir, int spell_type) |
| void | animate_bomb (object *op) |
| int | remove_depletion (object *op, object *target) |
| int | remove_curse (object *op, object *target, int type, int src) |
| int | do_cast_identify (object *tmp, object *op, int mode, int *done, int level) |
| int | cast_identify (object *op, int level, object *single_ob, int mode) |
| int | cast_consecrate (object *op) |
| int | finger_of_death (object *op, object *target) |
| int | cast_cause_disease (object *op, object *caster, int dir, archetype *disease_arch, int type) |
| int | cast_transform_wealth (object *op) |
Various spell effects.
Definition in file spell_effect.c.
| void animate_bomb | ( | object * | op | ) |
This handles an exploding bomb.
| op | The original bomb object. |
Definition at line 1174 of file spell_effect.c.
| int cast_cause_disease | ( | object * | op, |
| object * | caster, | ||
| int | dir, | ||
| archetype * | disease_arch, | ||
| int | type | ||
| ) |
Let's try to infect something.
| op | Who is casting. |
| caster | What object is casting. |
| dir | Cast direction. |
| disease_arch | Archetype of the disease. |
| type | ID of the spell. |
| 0 | No one caught anything. |
| 1 | At least one living was affected. |
Definition at line 1618 of file spell_effect.c.
Cast some stat-improving spell.
| op | Who is casting. |
| caster | What is casting. |
| target | Target of the caster; who is receiving the spell. |
| spell_type | ID of the spell. |
| 0 | Spell failed. |
| 1 | Spell was successful. |
Definition at line 1016 of file spell_effect.c.
| int cast_consecrate | ( | object * | op | ) |
A spell to make an altar your god's.
| op | Who is casting. |
| 0 | No consecration happened. |
| 1 | An altar was consecrated. |
Definition at line 1489 of file spell_effect.c.
Create food.
Allows the choice of what sort of food object to make. If stringarg is NULL, it will create food dependent on level.
| op | Who is casting. |
| caster | What is casting. |
| dir | Casting direction. |
| stringarg | Optional parameter specifying what kind of items to create. |
| 0 | No food created. |
| 1 | Food was created. |
Definition at line 121 of file spell_effect.c.
| int cast_create_town_portal | ( | object * | op | ) |
This function cast the spell of town portal for op.
The spell operates in two passes. During the first one a place is marked as a destination for the portal. During the second one, 2 portals are created, one in the position the player cast it and one in the destination place. The portal are synchronized and 2 forces are inserted in the player to destruct the portal next time player creates a new portal pair.
| op | Who is casting. |
| 0 | Spell was unsuccessful for some reason. |
| 1 | Spell worked. |
Definition at line 286 of file spell_effect.c.
Hit all enemies around the caster.
| op | Who is casting. |
| caster | What object is casting. |
| dam | Base damage to do. |
| attacktype | Attacktype. |
Definition at line 585 of file spell_effect.c.
Heals something.
| op | Who is casting. |
| level | Level of the skill. |
| target | Target. |
| spell_type | ID of the spell. |
Definition at line 738 of file spell_effect.c.
| int cast_heal_around | ( | object * | op, |
| int | level, | ||
| int | type | ||
| ) |
Cast an area of effect healing spell.
| op | Object. |
| level | Level of the spell being cast. |
| type | ID of the spell. |
Definition at line 658 of file spell_effect.c.
Cast identify spell.
| op | Object receiving the spell effects. |
| level | Level of the identification. |
| single_ob | If set, and mode is IDENTIFY_MARKED, only this object will be identified, otherwise contents of this object. If NULL, the inventory of 'op' will be identified. |
| mode | One of Identify modes. |
Definition at line 1448 of file spell_effect.c.
This is really used mostly for spell fumbles at the like.
| op | What is casting this. |
| tmp | Object to propagate. |
| lvl | How nasty should the propagation be. |
Definition at line 37 of file spell_effect.c.
| int cast_transform_wealth | ( | object * | op | ) |
Transform wealth spell.
| op | Who is casting. |
Definition at line 1766 of file spell_effect.c.
Word of recall causes the player to return 'home'.
We put a force into the player object, so that there is a time delay effect.
| op | Who is casting. |
| caster | What is casting. |
Definition at line 230 of file spell_effect.c.
Create a bomb.
| op | Who is casting. |
| caster | What object is casting. |
| dir | Cast direction. |
| spell_type | ID of the spell to cast. |
| 0 | No bomb was placed. |
| 1 | Bomb was placed on map. |
Definition at line 1147 of file spell_effect.c.
Actually identify an object when casting identify.
| tmp | What to identify. | |
| op | Who is receiving the spell effect. | |
| mode | One of Identify modes. | |
| [out] | done | Contains the number of objects identified so far. |
| level | Maximum level of items we can identify. |
Definition at line 1399 of file spell_effect.c.
Finger of death spell.
If target is undead, the spell will restore target to max health instead of damaging it.
| op | Caster. |
| target | Target. |
Definition at line 1569 of file spell_effect.c.
| int probe | ( | object * | op | ) |
Try to get information about a living thing.
| op | Who is casting. |
| 0 | Nothing probed. |
| 1 | Something was probed. |
Definition at line 196 of file spell_effect.c.
| int recharge | ( | object * | op | ) |
Recharge wands.
| op | Who is casting. |
| 0 | Nothing happened. |
| 1 | Wand was recharged, or destroyed. |
Definition at line 62 of file spell_effect.c.
Cast remove curse or remove damnation.
| op | Caster object. |
| target | Target. |
| type | ID of the spell. |
| src | Where the spell comes from. |
Definition at line 1297 of file spell_effect.c.
Cast remove depletion spell.
| op | Object casting this. |
| target | Target. |
Definition at line 1210 of file spell_effect.c.
1.7.4