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

Function Shirt_off

src/do_wear.c:777–794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777int
778Shirt_off(void)
779{
780 svc.context.takeoff.mask &= ~W_ARMU;
781
782 /* no shirt currently requires special handling when taken off, but we
783 keep this uncommented in case somebody adds a new one which does */
784 switch (uarmu->otyp) {
785 case HAWAIIAN_SHIRT:
786 case T_SHIRT:
787 break;
788 default:
789 impossible(unknown_type, c_shirt, uarmu->otyp);
790 }
791
792 setworn((struct obj *) 0, W_ARMU);
793 return 0;
794}
795
796/* handle extra abilities for hero wearing dragon scale armor */
797staticfn void

Callers 4

remove_worn_itemFunction · 0.85
armoroffFunction · 0.85
do_takeoffFunction · 0.85
wornarm_destroyedFunction · 0.85

Calls 2

setwornFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected