1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
9 | * the terms of the Affero GNU General Public License as published by the |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * option) any later version. |
11 | * option) any later version. |
… | |
… | |
214 | return 0; |
214 | return 0; |
215 | |
215 | |
216 | if (follower_has_similar_item (op, tr->item)) |
216 | if (follower_has_similar_item (op, tr->item)) |
217 | return 0; |
217 | return 0; |
218 | |
218 | |
219 | object *tmp = arch_to_object (tr->item); |
219 | object *tmp = tr->item->instance (); |
220 | new_draw_info_format (NDI_UNIQUE, 0, op, "%s lets %s appear in your hands.", &god->name, query_short_name (tmp)); |
220 | new_draw_info_format (NDI_UNIQUE, 0, op, "%s lets %s appear in your hands.", &god->name, query_short_name (tmp)); |
221 | op->insert (tmp); |
221 | op->insert (tmp); |
222 | |
222 | |
223 | return 1; |
223 | return 1; |
224 | } |
224 | } |
… | |
… | |
509 | stop_using_item (op, GLOVES, 1); |
509 | stop_using_item (op, GLOVES, 1); |
510 | stop_using_item (op, SHIELD, 1); |
510 | stop_using_item (op, SHIELD, 1); |
511 | } |
511 | } |
512 | |
512 | |
513 | SET_FLAG (skop, FLAG_APPLIED); |
513 | SET_FLAG (skop, FLAG_APPLIED); |
514 | (void) change_abil (op, skop); |
514 | change_abil (op, skop); |
515 | |
515 | |
516 | /* return to previous skill status */ |
516 | /* return to previous skill status */ |
517 | if (!sk_applied) |
517 | if (!sk_applied) |
518 | CLEAR_FLAG (skop, FLAG_APPLIED); |
518 | CLEAR_FLAG (skop, FLAG_APPLIED); |
519 | |
519 | |