1 | /* |
1 | /* |
2 | * static char *rcsid_spell_effect_c = |
2 | * static char *rcsid_spell_effect_c = |
3 | * "$Id: spell_effect.c,v 1.9 2006/05/18 15:20:42 pippijn Exp $"; |
3 | * "$Id: spell_effect.c,v 1.10 2006/06/02 00:56:46 pippijn Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
… | |
… | |
1512 | force->name = add_refcount(spell_ob->race); |
1512 | force->name = add_refcount(spell_ob->race); |
1513 | else |
1513 | else |
1514 | force->name = add_refcount(spell_ob->name); |
1514 | force->name = add_refcount(spell_ob->name); |
1515 | free_string(force->name_pl); |
1515 | free_string(force->name_pl); |
1516 | force->name_pl = add_refcount(spell_ob->name); |
1516 | force->name_pl = add_refcount(spell_ob->name); |
|
|
1517 | new_draw_info(NDI_UNIQUE, 0, op, "You create a aura of magical force."); |
1517 | |
1518 | |
1518 | } else { |
1519 | } else { |
1519 | int duration; |
1520 | int duration; |
1520 | |
1521 | |
1521 | duration = spell_ob->duration + SP_level_duration_adjust(caster, spell_ob) * 50; |
1522 | duration = spell_ob->duration + SP_level_duration_adjust(caster, spell_ob) * 50; |
… | |
… | |
1626 | force->name = add_refcount(spell_ob->race); |
1627 | force->name = add_refcount(spell_ob->race); |
1627 | else |
1628 | else |
1628 | force->name = add_refcount(spell_ob->name); |
1629 | force->name = add_refcount(spell_ob->name); |
1629 | free_string(force->name_pl); |
1630 | free_string(force->name_pl); |
1630 | force->name_pl = add_refcount(spell_ob->name); |
1631 | force->name_pl = add_refcount(spell_ob->name); |
|
|
1632 | new_draw_info(NDI_UNIQUE, 0, op, "You create a aura of magical force."); |
1631 | } else { |
1633 | } else { |
1632 | int duration; |
1634 | int duration; |
1633 | |
1635 | |
1634 | duration = spell_ob->duration + SP_level_duration_adjust(caster, spell_ob) * 50; |
1636 | duration = spell_ob->duration + SP_level_duration_adjust(caster, spell_ob) * 50; |
1635 | if (duration > force->duration) { |
1637 | if (duration > force->duration) { |
… | |
… | |
2584 | |
2586 | |
2585 | new_aura->level = caster_level(caster, spell); |
2587 | new_aura->level = caster_level(caster, spell); |
2586 | if (refresh) |
2588 | if (refresh) |
2587 | new_draw_info(NDI_UNIQUE, 0, op, "You recast the spell while in effect."); |
2589 | new_draw_info(NDI_UNIQUE, 0, op, "You recast the spell while in effect."); |
2588 | else |
2590 | else |
|
|
2591 | new_draw_info(NDI_UNIQUE, 0, op, "You create a aura of magical force."); |
2589 | insert_ob_in_ob(new_aura, op); |
2592 | insert_ob_in_ob(new_aura, op); |
2590 | return 1; |
2593 | return 1; |
2591 | } |
2594 | } |
2592 | |
2595 | |
2593 | |
2596 | |