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

Function item_resistance_message

src/insight.c:1467–1483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1465}
1466
1467staticfn void
1468item_resistance_message(
1469 int adtyp,
1470 const char *prot_message,
1471 int final)
1472{
1473 int protection = u_adtyp_resistance_obj(adtyp);
1474
1475 if (protection) {
1476 boolean somewhat = protection < 99;
1477
1478 enl_msg("Your items ",
1479 somewhat ? "are somewhat" : "are",
1480 somewhat ? "were somewhat" : "were",
1481 prot_message, item_what(adtyp));
1482 }
1483}
1484
1485/* attributes: intrinsics and the like, other non-obvious capabilities */
1486staticfn void

Callers 1

attributes_enlightenmentFunction · 0.85

Calls 2

u_adtyp_resistance_objFunction · 0.85
item_whatFunction · 0.85

Tested by

no test coverage detected