… | |
… | |
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 | |
212 | const int item_types_size = sizeof (item_types) / sizeof (*item_types); |
212 | static const int item_types_size = sizeof (item_types) / sizeof (*item_types); |
213 | |
213 | |
214 | materialtype_t *materialt; |
214 | materialtype_t *materialt; |
215 | |
215 | |
216 | /* |
216 | /* |
217 | materialtype material[NROFMATERIALS] = { |
217 | materialtype 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 | */ |
452 | const char * |
451 | static const char * |
453 | get_number (int i) |
452 | get_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 | */ |
479 | const char * |
478 | static const char * |
480 | ring_desc (const object *op) |
479 | ring_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 | |