| 5331 | } |
| 5332 | |
| 5333 | void fly_player(int pow, bool already_flying) |
| 5334 | { |
| 5335 | if (!flight_allowed()) |
| 5336 | return; |
| 5337 | |
| 5338 | bool standing = !you.airborne() && !already_flying; |
| 5339 | if (!already_flying) |
| 5340 | mprf(MSGCH_DURATION, "You feel %s buoyant.", standing ? "very" : "more"); |
| 5341 | |
| 5342 | you.increase_duration(DUR_FLIGHT, 25 + random2(pow), 100); |
| 5343 | |
| 5344 | if (standing) |
| 5345 | float_player(); |
| 5346 | } |
| 5347 | |
| 5348 | void enable_emergency_flight() |
| 5349 | { |
no test coverage detected