ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_object.C
(Generate patch)

Comparing deliantra/server/server/c_object.C (file contents):
Revision 1.86 by root, Sun Dec 28 16:35:32 2008 UTC vs.
Revision 1.89 by elmex, Mon Jan 12 00:17:23 2009 UTC

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
1058std::string 1058std::string
1059object::long_desc (object *who) 1059object::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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines