… | |
… | |
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] = { |
… | |
… | |
446 | * get_number(integer) returns the text-representation of the given number |
446 | * get_number(integer) returns the text-representation of the given number |
447 | * 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 |
448 | * call to get_number(). |
448 | * call to get_number(). |
449 | * It is currently only used by the query_name() function. |
449 | * It is currently only used by the query_name() function. |
450 | */ |
450 | */ |
451 | const char * |
451 | static const char * |
452 | get_number (int i) |
452 | get_number (int i) |
453 | { |
453 | { |
454 | if (i <= 20) |
454 | if (i <= 20) |
455 | return numbers[i]; |
455 | return numbers[i]; |
456 | else |
456 | else |
… | |
… | |
473 | */ |
473 | */ |
474 | |
474 | |
475 | /* 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 |
476 | * from stats.sp - b.t. |
476 | * from stats.sp - b.t. |
477 | */ |
477 | */ |
478 | const char * |
478 | static const char * |
479 | ring_desc (const object *op) |
479 | ring_desc (const object *op) |
480 | { |
480 | { |
481 | static dynbuf_text buf; buf.clear (); |
481 | static dynbuf_text buf; buf.clear (); |
482 | int attr, val, len; |
482 | int attr, val, len; |
483 | |
483 | |