cause of death if kicking kills kicker */
| 791 | |
| 792 | /* cause of death if kicking kills kicker */ |
| 793 | staticfn char * |
| 794 | kickstr(char *buf, const char *kickobjnam) |
| 795 | { |
| 796 | const char *what; |
| 797 | |
| 798 | if (*kickobjnam) |
| 799 | what = kickobjnam; |
| 800 | else if (gm.maploc == &gn.nowhere) |
| 801 | what = "nothing"; |
| 802 | else if (IS_DOOR(gm.maploc->typ)) |
| 803 | what = "a door"; |
| 804 | else if (IS_TREE(gm.maploc->typ)) |
| 805 | what = "a tree"; |
| 806 | else if (IS_STWALL(gm.maploc->typ)) |
| 807 | what = "a wall"; |
| 808 | else if (IS_OBSTRUCTED(gm.maploc->typ)) |
| 809 | what = "a rock"; |
| 810 | else if (IS_THRONE(gm.maploc->typ)) |
| 811 | what = "a throne"; |
| 812 | else if (IS_FOUNTAIN(gm.maploc->typ)) |
| 813 | what = "a fountain"; |
| 814 | else if (IS_GRAVE(gm.maploc->typ)) |
| 815 | what = "a headstone"; |
| 816 | else if (IS_SINK(gm.maploc->typ)) |
| 817 | what = "a sink"; |
| 818 | else if (IS_ALTAR(gm.maploc->typ)) |
| 819 | what = "an altar"; |
| 820 | else if (IS_DRAWBRIDGE(gm.maploc->typ)) |
| 821 | what = "a drawbridge"; |
| 822 | else if (gm.maploc->typ == STAIRS) |
| 823 | what = "the stairs"; |
| 824 | else if (gm.maploc->typ == LADDER) |
| 825 | what = "a ladder"; |
| 826 | else if (gm.maploc->typ == IRONBARS) |
| 827 | what = "an iron bar"; |
| 828 | else |
| 829 | what = "something weird"; |
| 830 | return strcat(strcpy(buf, "kicking "), what); |
| 831 | } |
| 832 | |
| 833 | staticfn boolean |
| 834 | watchman_thief_arrest(struct monst *mtmp) |