… | |
… | |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * it under the terms of the GNU General Public License as published by |
9 | * the terms of the Affero GNU General Public License as published by the |
10 | * the Free Software Foundation, either version 3 of the License, or |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * (at your option) any later version. |
11 | * option) any later version. |
12 | * |
12 | * |
13 | * This program is distributed in the hope that it will be useful, |
13 | * This program is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * GNU General Public License for more details. |
16 | * GNU General Public License for more details. |
17 | * |
17 | * |
18 | * You should have received a copy of the GNU General Public License |
18 | * You should have received a copy of the Affero GNU General Public License |
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | * and the GNU General Public License along with this program. If not, see |
|
|
20 | * <http://www.gnu.org/licenses/>. |
20 | * |
21 | * |
21 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | * The authors can be reached via e-mail to <support@deliantra.net> |
22 | */ |
23 | */ |
23 | |
24 | |
24 | #include <global.h> |
25 | #include <global.h> |
… | |
… | |
169 | {SPELLBOOK, "spellbook", "spellbooks", SK_LITERACY, 0}, |
170 | {SPELLBOOK, "spellbook", "spellbooks", SK_LITERACY, 0}, |
170 | {CLOAK, "cloak", "cloaks", SK_SMITHERY, 0}, |
171 | {CLOAK, "cloak", "cloaks", SK_SMITHERY, 0}, |
171 | {SPINNER, "spinner", "spinners", 0, 0}, |
172 | {SPINNER, "spinner", "spinners", 0, 0}, |
172 | {GATE, "gate", "gates", 0, 0}, |
173 | {GATE, "gate", "gates", 0, 0}, |
173 | {BUTTON, "button", "buttons", 0, 0}, |
174 | {BUTTON, "button", "buttons", 0, 0}, |
174 | {CF_HANDLE, "cf handle", "cf handles", 0, 0}, |
175 | {T_HANDLE, "cf handle", "cf handles", 0, 0}, |
175 | {HOLE, "hole", "holes", 0, 0}, |
176 | {HOLE, "hole", "holes", 0, 0}, |
176 | {TRAPDOOR, "trapdoor", "trapdoors", 0, 0}, |
177 | {TRAPDOOR, "trapdoor", "trapdoors", 0, 0}, |
177 | {SIGN, "sign", "signs", 0, 0}, |
178 | {SIGN, "sign", "signs", 0, 0}, |
178 | {BOOTS, "boots", "boots", SK_SMITHERY, 0}, |
179 | {BOOTS, "boots", "boots", SK_SMITHERY, 0}, |
179 | {GLOVES, "gloves", "gloves", SK_SMITHERY, 0}, |
180 | {GLOVES, "gloves", "gloves", SK_SMITHERY, 0}, |
… | |
… | |
1208 | if (QUERY_FLAG (op, FLAG_STEALTH)) buf << "(stealth)"; |
1209 | if (QUERY_FLAG (op, FLAG_STEALTH)) buf << "(stealth)"; |
1209 | |
1210 | |
1210 | if (op->slaying && op->type != FOOD) |
1211 | if (op->slaying && op->type != FOOD) |
1211 | buf.printf ("(slay %s)", &op->slaying); |
1212 | buf.printf ("(slay %s)", &op->slaying); |
1212 | |
1213 | |
|
|
1214 | if (op->type == SKILL_TOOL && op->skill) |
|
|
1215 | buf.printf ("(%s)", &op->skill); |
|
|
1216 | |
1213 | buf.add_abilities ("Attacks", op->attacktype); |
1217 | buf.add_abilities ("Attacks", op->attacktype); |
1214 | /* resistance on flesh is only visible for quetzals. If |
1218 | /* resistance on flesh is only visible for quetzals. If |
1215 | * non flesh, everyone can see its resistances |
1219 | * non flesh, everyone can see its resistances |
1216 | */ |
1220 | */ |
1217 | if (op->type != FLESH || (owner && is_dragon_pl (owner))) |
1221 | if (op->type != FLESH || (owner && is_dragon_pl (owner))) |