ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/spell_effect.C
(Generate patch)

Comparing deliantra/server/server/spell_effect.C (file contents):
Revision 1.104 by root, Sat Jun 27 03:51:05 2009 UTC vs.
Revision 1.105 by root, Thu Sep 17 00:07:04 2009 UTC

1030 "You don't feel any more powerful." 1030 "You don't feel any more powerful."
1031 "You are no easier to look at.", 1031 "You are no easier to look at.",
1032}; 1032};
1033 1033
1034int 1034int
1035change_ability_duration (object *spell, object *caster)
1036{
1037 return spell->duration + SP_level_duration_adjust (caster, spell) * 50;
1038}
1039
1040int
1035cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent) 1041cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent)
1036{ 1042{
1037 object *force = 0; 1043 object *force = 0;
1038 int i; 1044 int i;
1039 1045
1079 new_draw_info (NDI_UNIQUE, 0, op, "You create an aura of magical force."); 1085 new_draw_info (NDI_UNIQUE, 0, op, "You create an aura of magical force.");
1080 1086
1081 } 1087 }
1082 else 1088 else
1083 { 1089 {
1084 int duration; 1090 int duration = change_ability_duration (caster, spell_ob);
1085 1091
1086 duration = spell_ob->duration + SP_level_duration_adjust (caster, spell_ob) * 50;
1087 if (duration > force->duration) 1092 if (duration > force->duration)
1088 { 1093 {
1089 force->duration = duration; 1094 force->duration = duration;
1090 new_draw_info (NDI_UNIQUE, 0, op, "You recast the spell while in effect."); 1095 new_draw_info (NDI_UNIQUE, 0, op, "You recast the spell while in effect.");
1091 } 1096 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines