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

Function form_can_fly

crawl-ref/source/transform.cc:1489–1492  ·  view source on GitHub ↗

* Can the player fly, if in this form? * * DOES consider player state besides form. * @param form The form in question. * @return Whether the player will be able to fly in this form. */

Source from the content-addressed store, hash-verified

1487 * @return Whether the player will be able to fly in this form.
1488 */
1489bool form_can_fly(transformation form)
1490{
1491 return get_form(form)->player_can_fly();
1492}
1493
1494/**
1495 * Can the player swim, if in this form?

Callers 4

feat_dangerous_for_formFunction · 0.85
_enter_formFunction · 0.85
need_expiration_warningFunction · 0.85

Calls 2

get_formFunction · 0.85
player_can_flyMethod · 0.80

Tested by

no test coverage detected