… | |
… | |
260 | /* play_sound("stop! thief!"); kindofthing */ |
260 | /* play_sound("stop! thief!"); kindofthing */ |
261 | } /* if you weren't 100% successful */ |
261 | } /* if you weren't 100% successful */ |
262 | return success ? 1 : 0; |
262 | return success ? 1 : 0; |
263 | } |
263 | } |
264 | |
264 | |
265 | |
|
|
266 | int |
265 | int |
267 | steal (object *op, int dir, object *skill) |
266 | steal (object *op, int dir, object *skill) |
268 | { |
267 | { |
269 | object *tmp, *next; |
268 | object *tmp, *next; |
270 | sint16 x, y; |
269 | sint16 x, y; |
… | |
… | |
1316 | new_draw_info (NDI_UNIQUE, 0, pl, "A spell can only be inscribed into a scroll!"); |
1315 | new_draw_info (NDI_UNIQUE, 0, pl, "A spell can only be inscribed into a scroll!"); |
1317 | return 0; |
1316 | return 0; |
1318 | } |
1317 | } |
1319 | |
1318 | |
1320 | /* Check if we are ready to attempt inscription */ |
1319 | /* Check if we are ready to attempt inscription */ |
1321 | chosen_spell = pl->contr->ranges[range_magic]; |
1320 | chosen_spell = pl->contr->ranged_ob; |
1322 | if (!chosen_spell) |
1321 | if (!chosen_spell || chosen_spell->type != SPELL) |
1323 | { |
1322 | { |
1324 | new_draw_info (NDI_UNIQUE, 0, pl, "You need a spell readied in order to inscribe!"); |
1323 | new_draw_info (NDI_UNIQUE, 0, pl, "You need a spell readied in order to inscribe!"); |
1325 | return 0; |
1324 | return 0; |
1326 | } |
1325 | } |
1327 | |
1326 | |