MCPcopy Create free account
hub / github.com/NetHack/NetHack / Shirt_on

Function Shirt_on

src/do_wear.c:758–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758staticfn int
759Shirt_on(void)
760{
761 /* no shirt currently requires special handling when put on, but we
762 keep this uncommented in case somebody adds a new one which does */
763 switch (uarmu->otyp) {
764 case HAWAIIAN_SHIRT:
765 case T_SHIRT:
766 break;
767 default:
768 impossible(unknown_type, c_shirt, uarmu->otyp);
769 }
770 if (!uarmu->known) {
771 uarmu->known = 1; /* shirt's +/- evident because of status line AC */
772 update_inventory();
773 }
774 return 0;
775}
776
777int
778Shirt_off(void)

Callers 1

set_wearFunction · 0.85

Calls 2

update_inventoryFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected