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,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 |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
133 | { |
133 | { |
134 | new_draw_info (NDI_UNIQUE, 0, pl, "Usage: ready_skill <skill name>"); |
134 | new_draw_info (NDI_UNIQUE, 0, pl, "Usage: ready_skill <skill name>"); |
135 | return 0; |
135 | return 0; |
136 | } |
136 | } |
137 | |
137 | |
138 | skill = find_skill_by_name (pl, params); |
138 | skill = find_skill_by_name_fuzzy (pl, params); |
139 | |
139 | |
140 | if (!skill) |
140 | if (!skill) |
141 | { |
141 | { |
142 | new_draw_info_format (NDI_UNIQUE, 0, pl, "You have no knowledge of the skill %s", params); |
142 | new_draw_info_format (NDI_UNIQUE, 0, pl, "You have no knowledge of the skill %s", params); |
143 | return 0; |
143 | return 0; |
… | |
… | |
1056 | } |
1056 | } |
1057 | |
1057 | |
1058 | std::string |
1058 | std::string |
1059 | object::long_desc (object *who) |
1059 | object::long_desc (object *who) |
1060 | { |
1060 | { |
1061 | std::string buf (query_name (this)); |
1061 | std::string buf (query_name ()); |
1062 | |
1062 | |
1063 | switch (type) |
1063 | switch (type) |
1064 | { |
1064 | { |
1065 | case RING: |
1065 | case RING: |
1066 | case SKILL: |
1066 | case SKILL: |
… | |
… | |
1078 | case CLOAK: |
1078 | case CLOAK: |
1079 | case FOOD: |
1079 | case FOOD: |
1080 | case DRINK: |
1080 | case DRINK: |
1081 | case FLESH: |
1081 | case FLESH: |
1082 | case SKILL_TOOL: |
1082 | case SKILL_TOOL: |
|
|
1083 | case LAMP: |
1083 | case POWER_CRYSTAL: |
1084 | case POWER_CRYSTAL: |
1084 | { |
1085 | { |
1085 | const char *cp = ::describe_item (this, who); |
1086 | const char *cp = ::describe_item (this, who); |
1086 | |
1087 | |
1087 | if (*cp) |
1088 | if (*cp) |