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

Comparing deliantra/server/common/item.C (file contents):
Revision 1.14 by elmex, Wed Dec 20 14:11:42 2006 UTC vs.
Revision 1.17 by elmex, Wed Jan 3 02:30:51 2007 UTC

161 {LIGHTER, "lighter", "lighters", 0, 0}, 161 {LIGHTER, "lighter", "lighters", 0, 0},
162 {BUILDABLE_WALL, "buildable wall", "buildable walls", 0, 0}, 162 {BUILDABLE_WALL, "buildable wall", "buildable walls", 0, 0},
163 {MISC_OBJECT, "bric-a-brac", "bric-a-brac", 0, 0}, 163 {MISC_OBJECT, "bric-a-brac", "bric-a-brac", 0, 0},
164 {LAMP, "lamp", "lamps", 0, 0}, 164 {LAMP, "lamp", "lamps", 0, 0},
165 {DUPLICATOR, "duplicator", "duplicators", 0, 0}, 165 {DUPLICATOR, "duplicator", "duplicators", 0, 0},
166 {TOOL, "tool", "tools", 0, 0},
167 {SPELLBOOK, "spellbook", "spellbooks", SK_LITERACY, 0}, 166 {SPELLBOOK, "spellbook", "spellbooks", SK_LITERACY, 0},
168 {BUILDFAC, "building facility", "building facilities", 0, 0},
169 {CLOAK, "cloak", "cloaks", SK_SMITHERY, 0}, 167 {CLOAK, "cloak", "cloaks", SK_SMITHERY, 0},
170 {SPINNER, "spinner", "spinners", 0, 0}, 168 {SPINNER, "spinner", "spinners", 0, 0},
171 {GATE, "gate", "gates", 0, 0}, 169 {GATE, "gate", "gates", 0, 0},
172 {BUTTON, "button", "buttons", 0, 0}, 170 {BUTTON, "button", "buttons", 0, 0},
173 {CF_HANDLE, "cf handle", "cf handles", 0, 0}, 171 {CF_HANDLE, "cf handle", "cf handles", 0, 0},
869 867
870 /* Note that the resolution this provides for players really isn't 868 /* Note that the resolution this provides for players really isn't
871 * very good. Any player with a speed greater than .67 will 869 * very good. Any player with a speed greater than .67 will
872 * fall into the 'lightning fast movement' category. 870 * fall into the 'lightning fast movement' category.
873 */ 871 */
874 if (FABS (op->speed) > MIN_ACTIVE_SPEED) 872 if (op->has_active_speed ())
875 { 873 {
876 switch ((int) ((FABS (op->speed)) * 15)) 874 switch ((int) ((FABS (op->speed)) * 15))
877 { 875 {
878 case 0: 876 case 0:
879 strcat (retbuf, "(very slow movement)"); 877 strcat (retbuf, "(very slow movement)");
935 { 933 {
936 treasure *t; 934 treasure *t;
937 int first = 1; 935 int first = 1;
938 936
939 for (t = op->randomitems->items; t != NULL; t = t->next) 937 for (t = op->randomitems->items; t != NULL; t = t->next)
940 if (t->item && (t->item->clone.type == SPELL)) 938 if (t->item && t->item->clone.type == SPELL)
941 { 939 {
942 if (first) 940 if (first)
943 { 941 {
944 first = 0; 942 first = 0;
945 strcat (retbuf, "(Spell abilities:)"); 943 strcat (retbuf, "(Spell abilities:)");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines