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.61 by root, Mon Oct 19 21:48:48 2009 UTC vs.
Revision 1.63 by root, Fri Nov 6 13:03:34 2009 UTC

207 {BUILDER, "item builder", "item builders", 0, 0}, 207 {BUILDER, "item builder", "item builders", 0, 0},
208 {MATERIAL, "building material", "building materials", 0, 0}, 208 {MATERIAL, "building material", "building materials", 0, 0},
209 {ITEM_TRANSFORMER, "item_transformer", "item_transformers", 0, 0}, 209 {ITEM_TRANSFORMER, "item_transformer", "item_transformers", 0, 0},
210}; 210};
211 211
212const int item_types_size = sizeof (item_types) / sizeof (*item_types); 212static const int item_types_size = sizeof (item_types) / sizeof (*item_types);
213 213
214materialtype_t *materialt; 214materialtype_t *materialt;
215 215
216/* 216/*
217materialtype material[NROFMATERIALS] = { 217materialtype material[NROFMATERIALS] = {
390 buf.printf (newline ? "%s %d\n" : "(%s %+d)", resist_plus[i], op->resist[i]); 390 buf.printf (newline ? "%s %d\n" : "(%s %+d)", resist_plus[i], op->resist[i]);
391 391
392 return buf; 392 return buf;
393} 393}
394 394
395
396/* 395/*
397 * query_weight(object) returns a character pointer to a static buffer 396 * query_weight(object) returns a character pointer to a static buffer
398 * containing the text-representation of the weight of the given object. 397 * containing the text-representation of the weight of the given object.
399 * The buffer will be overwritten by the next call to query_weight(). 398 * The buffer will be overwritten by the next call to query_weight().
400 * 399 *
447 * get_number(integer) returns the text-representation of the given number 446 * get_number(integer) returns the text-representation of the given number
448 * in a static buffer. The buffer might be overwritten at the next 447 * in a static buffer. The buffer might be overwritten at the next
449 * call to get_number(). 448 * call to get_number().
450 * It is currently only used by the query_name() function. 449 * It is currently only used by the query_name() function.
451 */ 450 */
452const char * 451static const char *
453get_number (int i) 452get_number (int i)
454{ 453{
455 if (i <= 20) 454 if (i <= 20)
456 return numbers[i]; 455 return numbers[i];
457 else 456 else
474 */ 473 */
475 474
476/* Aug 95 modified this slightly so that Skill tools don't have magic bonus 475/* Aug 95 modified this slightly so that Skill tools don't have magic bonus
477 * from stats.sp - b.t. 476 * from stats.sp - b.t.
478 */ 477 */
479const char * 478static const char *
480ring_desc (const object *op) 479ring_desc (const object *op)
481{ 480{
482 static dynbuf_text buf; buf.clear (); 481 static dynbuf_text buf; buf.clear ();
483 int attr, val, len; 482 int attr, val, len;
484 483

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines