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,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010 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. |
… | |
… | |
47 | * Note that using the term 'human' may not be very accurate, humanoid |
47 | * Note that using the term 'human' may not be very accurate, humanoid |
48 | * may be better. |
48 | * may be better. |
49 | * Basically, for the use/nonuse, the code does something like: |
49 | * Basically, for the use/nonuse, the code does something like: |
50 | * "This item goes %s\n", with the use/nonuse values filling in the %s |
50 | * "This item goes %s\n", with the use/nonuse values filling in the %s |
51 | */ |
51 | */ |
|
|
52 | // see include/object.h |
52 | Body_Locations body_locations[NUM_BODY_LOCATIONS] = { |
53 | Body_Locations body_locations[NUM_BODY_LOCATIONS] = { |
53 | {KW_body_skill , "You can use it as your skill" , "It is used as a skill"}, |
54 | {KW_body_skill , "You can use it as your skill" , "It is used as a skill"}, |
54 | {KW_body_combat , "You can wield it as your weapon" , "It is used as a combat weapon"}, |
55 | {KW_body_combat , "You can wield it as your weapon" , "It is used as a combat weapon"}, |
55 | {KW_body_range , "You can use it as your range weapon" , "It is used as a range weapon"}, |
56 | {KW_body_range , "You can use it as your range weapon" , "It is used as a range weapon"}, |
56 | {KW_body_shield , "You can wield it as a shield" , "It is used as a shield"}, |
57 | {KW_body_shield , "You can wield it as a shield" , "It is used as a shield"}, |
… | |
… | |
625 | { |
626 | { |
626 | case BOW: |
627 | case BOW: |
627 | case WAND: |
628 | case WAND: |
628 | case ROD: |
629 | case ROD: |
629 | case HORN: |
630 | case HORN: |
630 | buf << (op->env && op->env->current_weapon == op ? " (readied)" : " (applied)"); |
631 | buf << " (applied)"; |
631 | break; |
632 | break; |
632 | case WEAPON: |
633 | case WEAPON: |
633 | buf << (op->env && op->env->current_weapon == op ? " (wielded)" : " (applied)"); |
634 | buf << " (applied)"; |
634 | break; |
635 | break; |
635 | case ARMOUR: |
636 | case ARMOUR: |
636 | case HELMET: |
637 | case HELMET: |
637 | case SHIELD: |
638 | case SHIELD: |
638 | case RING: |
639 | case RING: |
… | |
… | |
744 | } |
745 | } |
745 | break; |
746 | break; |
746 | |
747 | |
747 | case EXIT: |
748 | case EXIT: |
748 | // random map exits "unfortunately" get patched, so this only works before entering |
749 | // random map exits "unfortunately" get patched, so this only works before entering |
749 | buf << (EXIT_PATH (op) == shstr_random_map_exit ? " (random map)" : " (exit)"); |
750 | if (EXIT_PATH (op) == shstr_random_map_exit) |
|
|
751 | buf << " (random map)"; |
|
|
752 | else if (!EXIT_PATH (op)) |
|
|
753 | buf << " (closed)"; |
750 | break; |
754 | break; |
751 | |
755 | |
752 | default: |
756 | default: |
753 | if (op->magic && ((QUERY_FLAG (op, FLAG_BEEN_APPLIED) && need_identify (op)) || QUERY_FLAG (op, FLAG_IDENTIFIED))) |
757 | if (op->magic && ((QUERY_FLAG (op, FLAG_BEEN_APPLIED) && need_identify (op)) || QUERY_FLAG (op, FLAG_IDENTIFIED))) |
754 | buf.printf (" %+d", op->magic); |
758 | buf.printf (" %+d", op->magic); |