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.88 by root, Wed May 12 20:40:50 2010 UTC vs.
Revision 1.89 by root, Sat May 15 23:41:05 2010 UTC

686 686
687 if (op->flag [FLAG_APPLIED]) 687 if (op->flag [FLAG_APPLIED])
688 { 688 {
689 switch (op->type) 689 switch (op->type)
690 { 690 {
691 case RANGED:
691 case BOW: 692 case BOW:
692 case WAND: 693 case WAND:
693 case ROD: 694 case ROD:
694 case HORN: 695 case HORN:
695 buf << " (applied)";
696 break;
697 case WEAPON: 696 case WEAPON:
698 buf << " (applied)"; 697 buf << " (applied)";
699 break; 698 break;
700 case ARMOUR: 699 case ARMOUR:
701 case HELMET: 700 case HELMET:
991 if (!identified) 990 if (!identified)
992 buf << "(unidentified)"; 991 buf << "(unidentified)";
993 992
994 switch (op->type) 993 switch (op->type)
995 { 994 {
995 case RANGED:
996 case BOW: 996 case BOW:
997 case ARROW: 997 case ARROW:
998 case WAND: 998 case WAND:
999 case ROD: 999 case ROD:
1000 case HORN: 1000 case HORN:
1105 /* Down here, we more further describe equipment type items. 1105 /* Down here, we more further describe equipment type items.
1106 * only describe them if they have been identified or the like. 1106 * only describe them if they have been identified or the like.
1107 */ 1107 */
1108 if (identified || op->flag [FLAG_BEEN_APPLIED]) 1108 if (identified || op->flag [FLAG_BEEN_APPLIED])
1109 { 1109 {
1110 int attr, val;
1111
1112 for (attr = 0; attr < NUM_STATS; attr++) 1110 for (int attr = 0; attr < NUM_STATS; attr++)
1113 if ((val = op->stats.stat (attr))) 1111 if (int val = op->stats.stat (attr))
1114 buf.printf ("(%s%+d)", short_stat_name[attr], val); 1112 buf.printf ("(%s%+d)", short_stat_name[attr], val);
1115 1113
1116 if (op->stats.exp) 1114 if (op->stats.exp)
1117 buf.printf ("(speed %+lld)", (long long) op->stats.exp); 1115 buf.printf ("(speed %+lld)", (long long) op->stats.exp);
1118 1116
1119 switch (op->type) 1117 switch (op->type)
1120 { 1118 {
1119 case RANGED:
1121 case BOW: 1120 case BOW:
1122 case ARROW: 1121 case ARROW:
1123 case GIRDLE: 1122 case GIRDLE:
1124 case HELMET: 1123 case HELMET:
1125 case SHIELD: 1124 case SHIELD:
1168 { 1167 {
1169 int more_info = 0; 1168 int more_info = 0;
1170 1169
1171 switch (op->type) 1170 switch (op->type)
1172 { 1171 {
1172 case RANGED:
1173 case ROD: /* These use stats.sp for spell selection and stats.food */ 1173 case ROD: /* These use stats.sp for spell selection and stats.food */
1174 case HORN: /* and stats.hp for spell-point regeneration... */ 1174 case HORN: /* and stats.hp for spell-point regeneration... */
1175 case BOW: 1175 case BOW:
1176 case ARROW: 1176 case ARROW:
1177 case WAND: 1177 case WAND:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines