helm vs hat for messages */
| 5510 | |
| 5511 | /* helm vs hat for messages */ |
| 5512 | const char * |
| 5513 | helm_simple_name(struct obj *helmet) |
| 5514 | { |
| 5515 | /* |
| 5516 | * There is some wiggle room here; the result has been chosen |
| 5517 | * for consistency with the "protected by hard helmet" messages |
| 5518 | * given for various bonks on the head: headgear that provides |
| 5519 | * such protection is a "helm", that which doesn't is a "hat". |
| 5520 | * |
| 5521 | * elven leather helm / leather hat -> hat |
| 5522 | * dwarvish iron helm / hard hat -> helm |
| 5523 | * The rest are completely straightforward: |
| 5524 | * fedora, cornuthaum, dunce cap -> hat |
| 5525 | * all other types of helmets -> helm |
| 5526 | */ |
| 5527 | return !hard_helmet(helmet) ? "hat" : "helm"; |
| 5528 | } |
| 5529 | |
| 5530 | /* gloves vs gauntlets; depends upon discovery state */ |
| 5531 | const char * |
no test coverage detected