Counts the money in an object chain. */ Intended use is for your or some monster's inventory, */ now that u.gold/m.gold is gone.*/ Counting money in a container might be possible too. */
| 4511 | /* now that u.gold/m.gold is gone.*/ |
| 4512 | /* Counting money in a container might be possible too. */ |
| 4513 | long |
| 4514 | money_cnt(struct obj *otmp) |
| 4515 | { |
| 4516 | while (otmp) { |
| 4517 | if (otmp->oclass == COIN_CLASS) |
| 4518 | return otmp->quan; |
| 4519 | otmp = otmp->nobj; |
| 4520 | } |
| 4521 | return 0L; |
| 4522 | } |
| 4523 | |
| 4524 | void |
| 4525 | spot_checks(coordxy x, coordxy y, schar old_typ) |
no outgoing calls
no test coverage detected