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

Function set_bknown

src/mkobj.c:1863–1873  ·  view source on GitHub ↗

set the object's bless/curse-state known flag */

Source from the content-addressed store, hash-verified

1861
1862/* set the object's bless/curse-state known flag */
1863void
1864set_bknown(
1865 struct obj *obj,
1866 unsigned int onoff) /* 1 or 0 */
1867{
1868 if (obj->bknown != onoff) {
1869 obj->bknown = onoff;
1870 if (obj->where == OBJ_INVENT && svm.moves > 1L)
1871 update_inventory();
1872 }
1873}
1874
1875/*
1876 * Calculate the weight of the given object. This will recursively follow

Callers 15

ready_weaponFunction · 0.85
can_twoweaponFunction · 0.85
weldedFunction · 0.85
Helmet_onFunction · 0.85
cursedFunction · 0.85
accessory_or_armor_onFunction · 0.85
select_offFunction · 0.85
canletgoFunction · 0.85
fix_worst_troubleFunction · 0.85
allow_categoryFunction · 0.85
in_containerFunction · 0.85
doeatFunction · 0.85

Calls 1

update_inventoryFunction · 0.85

Tested by

no test coverage detected