use one charge from an item and possibly incur shop debt for it */
| 1334 | |
| 1335 | /* use one charge from an item and possibly incur shop debt for it */ |
| 1336 | void |
| 1337 | consume_obj_charge( |
| 1338 | struct obj *obj, |
| 1339 | boolean maybe_unpaid) /* false if caller handles shop billing */ |
| 1340 | { |
| 1341 | if (maybe_unpaid) |
| 1342 | check_unpaid(obj); |
| 1343 | obj->spe -= 1; |
| 1344 | if (obj->known) |
| 1345 | update_inventory(); |
| 1346 | } |
| 1347 | |
| 1348 | /* |
| 1349 | * Adjust hero's attributes as if this object was being removed from the |
no test coverage detected