… | |
… | |
228 | |
228 | |
229 | if (victim->destroyed ()) |
229 | if (victim->destroyed ()) |
230 | return; |
230 | return; |
231 | |
231 | |
232 | /* if there's a disease in the needle, put it in the player */ |
232 | /* if there's a disease in the needle, put it in the player */ |
233 | if (HAS_RANDOM_ITEMS (op)) |
233 | if (op->has_random_items ()) |
234 | create_treasure (op->randomitems, op, 0, (victim->map ? victim->map->difficulty : 1), 0); |
234 | create_treasure (op->randomitems, op, 0, (victim->map ? victim->map->difficulty : 1), 0); |
235 | |
235 | |
236 | if (op->inv && op->inv->type == DISEASE) |
236 | if (op->inv && op->inv->type == DISEASE) |
237 | { |
237 | { |
238 | object *disease = op->inv; |
238 | object *disease = op->inv; |