… | |
… | |
2448 | /** |
2448 | /** |
2449 | * This fonction return true if the exit is not a 2 ways one or it is 2 ways, valid exit. |
2449 | * This fonction return true if the exit is not a 2 ways one or it is 2 ways, valid exit. |
2450 | * A valid 2 way exit means: |
2450 | * A valid 2 way exit means: |
2451 | * -You can come back (there is another exit at the other side) |
2451 | * -You can come back (there is another exit at the other side) |
2452 | * -You are |
2452 | * -You are |
2453 | * ° the owner of the exit |
2453 | * ° the owner of the exit |
2454 | * ° or in the same party as the owner |
2454 | * ° or in the same party as the owner |
2455 | * |
2455 | * |
2456 | * Note: a owner in a 2 way exit is saved as the owner's name |
2456 | * Note: a owner in a 2 way exit is saved as the owner's name |
2457 | * in the field exit->name cause the field exit->owner doesn't |
2457 | * in the field exit->name cause the field exit->owner doesn't |
2458 | * survive in the swapping (in fact the whole exit doesn't survive). |
2458 | * survive in the swapping (in fact the whole exit doesn't survive). |
2459 | */ |
2459 | */ |
… | |
… | |
3850 | { |
3850 | { |
3851 | force->resist[i] = food->resist[i] / 2; |
3851 | force->resist[i] = food->resist[i] / 2; |
3852 | did_one = 1; |
3852 | did_one = 1; |
3853 | } |
3853 | } |
3854 | } |
3854 | } |
|
|
3855 | |
3855 | if (did_one) |
3856 | if (did_one) |
3856 | { |
3857 | { |
3857 | force->speed = 0.1; |
3858 | force->speed = 0.1; |
3858 | update_ob_speed (force); |
3859 | update_ob_speed (force); |
3859 | /* bigger morsel of food = longer effect time */ |
3860 | /* bigger morsel of food = longer effect time */ |
3860 | force->stats.food = food->stats.food / 5; |
3861 | force->duration = food->stats.food / 5; |
3861 | SET_FLAG (force, FLAG_IS_USED_UP); |
|
|
3862 | SET_FLAG (force, FLAG_APPLIED); |
3862 | SET_FLAG (force, FLAG_APPLIED); |
3863 | change_abil (who, force); |
3863 | change_abil (who, force); |
3864 | insert_ob_in_ob (force, who); |
3864 | insert_ob_in_ob (force, who); |
3865 | } |
3865 | } |
3866 | else |
3866 | else |