MCPcopy Create free account
hub / github.com/crawl/crawl / fly_player

Function fly_player

crawl-ref/source/player.cc:5333–5346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5331}
5332
5333void 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
5348void enable_emergency_flight()
5349{

Callers 2

effectMethod · 0.85

Calls 6

flight_allowedFunction · 0.85
mprfFunction · 0.85
random2Function · 0.85
float_playerFunction · 0.85
increase_durationMethod · 0.80
airborneMethod · 0.45

Tested by

no test coverage detected