| 4493 | } |
| 4494 | |
| 4495 | int |
| 4496 | inv_cnt(boolean incl_gold) |
| 4497 | { |
| 4498 | struct obj *otmp = gi.invent; |
| 4499 | int ct = 0; |
| 4500 | |
| 4501 | while (otmp) { |
| 4502 | if (incl_gold || otmp->invlet != GOLD_SYM) |
| 4503 | ct++; |
| 4504 | otmp = otmp->nobj; |
| 4505 | } |
| 4506 | return ct; |
| 4507 | } |
| 4508 | |
| 4509 | /* Counts the money in an object chain. */ |
| 4510 | /* Intended use is for your or some monster's inventory, */ |
no outgoing calls
no test coverage detected