return how a poison attack was delivered */
| 142 | |
| 143 | /* return how a poison attack was delivered */ |
| 144 | const char * |
| 145 | mpoisons_subj( |
| 146 | struct monst *mtmp, |
| 147 | struct attack *mattk) |
| 148 | { |
| 149 | if (mattk->aatyp == AT_WEAP) { |
| 150 | struct obj *mwep = (mtmp == &gy.youmonst) ? uwep : MON_WEP(mtmp); |
| 151 | /* "Foo's attack was poisoned." is pretty lame, but at least |
| 152 | it's better than "sting" when not a stinging attack... */ |
| 153 | return (!mwep || !mwep->opoisoned) ? "attack" : "weapon"; |
| 154 | } else { |
| 155 | return (mattk->aatyp == AT_TUCH) ? "contact" |
| 156 | : (mattk->aatyp == AT_GAZE) ? "gaze" |
| 157 | : (mattk->aatyp == AT_BITE) ? "bite" : "sting"; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | /* called when your intrinsic speed is taken away */ |
| 162 | void |
no outgoing calls
no test coverage detected