… | |
… | |
2174 | new_draw_info (NDI_UNIQUE, 0, op, "It can be no darker here."); |
2174 | new_draw_info (NDI_UNIQUE, 0, op, "It can be no darker here."); |
2175 | } |
2175 | } |
2176 | return success; |
2176 | return success; |
2177 | } |
2177 | } |
2178 | |
2178 | |
2179 | |
|
|
2180 | |
|
|
2181 | |
|
|
2182 | |
|
|
2183 | /* create an aura spell object and put it in the player's inventory. |
2179 | /* create an aura spell object and put it in the player's inventory. |
2184 | * as usual, op is player, caster is the object casting the spell, |
2180 | * as usual, op is player, caster is the object casting the spell, |
2185 | * spell is the spell object itself. |
2181 | * spell is the spell object itself. |
2186 | */ |
2182 | */ |
2187 | int |
2183 | int |
… | |
… | |
2198 | |
2194 | |
2199 | new_aura->duration = spell->duration + 10 * SP_level_duration_adjust (caster, spell); |
2195 | new_aura->duration = spell->duration + 10 * SP_level_duration_adjust (caster, spell); |
2200 | |
2196 | |
2201 | new_aura->stats.dam = spell->stats.dam + SP_level_dam_adjust (caster, spell); |
2197 | new_aura->stats.dam = spell->stats.dam + SP_level_dam_adjust (caster, spell); |
2202 | |
2198 | |
2203 | new_aura->set_owner (op); |
|
|
2204 | set_spell_skill (op, caster, spell, new_aura); |
2199 | set_spell_skill (op, caster, spell, new_aura); |
2205 | new_aura->attacktype = spell->attacktype; |
2200 | new_aura->attacktype = spell->attacktype; |
2206 | |
2201 | |
2207 | new_aura->level = caster_level (caster, spell); |
2202 | new_aura->level = caster_level (caster, spell); |
|
|
2203 | |
2208 | if (refresh) |
2204 | if (refresh) |
2209 | new_draw_info (NDI_UNIQUE, 0, op, "You recast the spell while in effect."); |
2205 | new_draw_info (NDI_UNIQUE, 0, op, "You recast the spell while in effect."); |
2210 | else |
2206 | else |
2211 | new_draw_info (NDI_UNIQUE, 0, op, "You create an aura of magical force."); |
2207 | new_draw_info (NDI_UNIQUE, 0, op, "You create an aura of magical force."); |
|
|
2208 | |
2212 | insert_ob_in_ob (new_aura, op); |
2209 | insert_ob_in_ob (new_aura, op); |
|
|
2210 | new_aura->set_owner (op); |
|
|
2211 | |
2213 | return 1; |
2212 | return 1; |
2214 | } |
2213 | } |
2215 | |
2214 | |
2216 | |
2215 | |
2217 | /* move aura function. An aura is a part of someone's inventory, |
2216 | /* move aura function. An aura is a part of someone's inventory, |