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

Function arti_light_description

src/light.c:915–931  ·  view source on GitHub ↗

adverb describing lit artifact's light; radius varies depending upon curse/bless state; also used for gold dragon scales/scale mail */

Source from the content-addressed store, hash-verified

913/* adverb describing lit artifact's light; radius varies depending upon
914 curse/bless state; also used for gold dragon scales/scale mail */
915const char *
916arti_light_description(struct obj *obj)
917{
918 switch (arti_light_radius(obj)) {
919 case 4:
920 return "radiantly"; /* blessed gold dragon scale mail */
921 case 3:
922 return "brilliantly"; /* blessed artifact, uncursed gold DSM */
923 case 2:
924 return "brightly"; /* uncursed artifact, cursed gold DSM */
925 case 1:
926 return "dimly"; /* cursed artifact, embedded scales */
927 default:
928 break;
929 }
930 return "strangely";
931}
932
933/* the #lightsources command */
934int

Callers 5

ready_weaponFunction · 0.85
Armor_onFunction · 0.85
doname_baseFunction · 0.85
mon_wield_itemFunction · 0.85
m_dowear_typeFunction · 0.85

Calls 1

arti_light_radiusFunction · 0.85

Tested by

no test coverage detected