… | |
… | |
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 | |
1034 | int |
1034 | int |
|
|
1035 | change_ability_duration (object *spell, object *caster) |
|
|
1036 | { |
|
|
1037 | return spell->duration + SP_level_duration_adjust (caster, spell) * 50; |
|
|
1038 | } |
|
|
1039 | |
|
|
1040 | int |
1035 | cast_change_ability (object *op, object *caster, object *spell_ob, int dir, int silent) |
1041 | cast_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 | } |