set the object's bless/curse-state known flag */
| 1861 | |
| 1862 | /* set the object's bless/curse-state known flag */ |
| 1863 | void |
| 1864 | set_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 |
no test coverage detected