take away the hero's money */
| 11 | |
| 12 | /* take away the hero's money */ |
| 13 | void |
| 14 | take_gold(void) |
| 15 | { |
| 16 | struct obj *otmp, *nobj; |
| 17 | int lost_money = 0; |
| 18 | |
| 19 | for (otmp = gi.invent; otmp; otmp = nobj) { |
| 20 | nobj = otmp->nobj; |
| 21 | if (otmp->oclass == COIN_CLASS) { |
| 22 | lost_money = 1; |
| 23 | remove_worn_item(otmp, FALSE); |
| 24 | delobj(otmp); |
| 25 | } |
| 26 | } |
| 27 | if (!lost_money) { |
| 28 | You_feel("a strange sensation."); |
| 29 | } else { |
| 30 | You("notice you have no gold!"); |
| 31 | disp.botl = TRUE; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | staticfn void special_throne_effect(int effect); |
| 36 |
no test coverage detected