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

Function skinback

src/polyself.c:1953–1969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1951}
1952
1953void
1954skinback(boolean silently)
1955{
1956 if (uskin) {
1957 int old_light = arti_light_radius(uskin);
1958
1959 if (!silently)
1960 Your("skin returns to its original form.");
1961 uarm = uskin;
1962 uskin = (struct obj *) 0;
1963 /* undo save/restore hack */
1964 uarm->owornmask &= ~I_SPECIAL;
1965
1966 if (artifact_light(uarm))
1967 maybe_adjust_light(uarm, old_light);
1968 }
1969}
1970
1971const char *
1972mbodypart(struct monst *mon, int part)

Callers 3

remove_worn_itemFunction · 0.85
polymanFunction · 0.85
polymonFunction · 0.85

Calls 4

arti_light_radiusFunction · 0.85
YourFunction · 0.85
artifact_lightFunction · 0.85
maybe_adjust_lightFunction · 0.85

Tested by

no test coverage detected