… | |
… | |
3330 | } |
3330 | } |
3331 | |
3331 | |
3332 | for (tmp = op->inv; tmp != NULL; tmp = next) |
3332 | for (tmp = op->inv; tmp != NULL; tmp = next) |
3333 | { |
3333 | { |
3334 | next = tmp->below; |
3334 | next = tmp->below; |
3335 | if (tmp->type == EXPERIENCE || tmp->invisible) |
3335 | if (tmp->invisible) |
3336 | continue; |
3336 | continue; |
3337 | tmp->remove (); |
3337 | tmp->remove (); |
3338 | tmp->x = op->x, tmp->y = op->y; |
3338 | tmp->x = op->x, tmp->y = op->y; |
3339 | if (tmp->type == CONTAINER) |
3339 | if (tmp->type == CONTAINER) |
3340 | { /* empty container to ground */ |
3340 | { /* empty container to ground */ |
… | |
… | |
3446 | object *tmp = NULL; |
3446 | object *tmp = NULL; |
3447 | |
3447 | |
3448 | if (QUERY_FLAG (&op->arch->clone, FLAG_UNDEAD)) |
3448 | if (QUERY_FLAG (&op->arch->clone, FLAG_UNDEAD)) |
3449 | return 1; |
3449 | return 1; |
3450 | |
3450 | |
3451 | if (op->type == PLAYER) |
|
|
3452 | for (tmp = op->inv; tmp; tmp = tmp->below) |
|
|
3453 | if (tmp->type == EXPERIENCE && tmp->stats.Wis) |
|
|
3454 | if (QUERY_FLAG (tmp, FLAG_UNDEAD)) |
|
|
3455 | return 1; |
|
|
3456 | return 0; |
3451 | return 0; |
3457 | } |
3452 | } |
3458 | |
3453 | |
3459 | /* look at the surrounding terrain to determine |
3454 | /* look at the surrounding terrain to determine |
3460 | * the hideability of this object. Positive levels |
3455 | * the hideability of this object. Positive levels |