| 1015 | |
| 1016 | /* make a single arrow/dart/rock for a trap to shoot or drop */ |
| 1017 | staticfn struct obj * |
| 1018 | t_missile(int otyp, struct trap *trap) |
| 1019 | { |
| 1020 | struct obj *otmp = mksobj(otyp, TRUE, FALSE); |
| 1021 | |
| 1022 | otmp->quan = 1L; |
| 1023 | otmp->owt = weight(otmp); |
| 1024 | otmp->opoisoned = 0; |
| 1025 | otmp->ox = trap->tx, otmp->oy = trap->ty; |
| 1026 | return otmp; |
| 1027 | } |
| 1028 | |
| 1029 | void |
| 1030 | set_utrap(unsigned int tim, unsigned int typ) |
no test coverage detected