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

Method equip_flight

crawl-ref/source/actor.cc:313–319  ·  view source on GitHub ↗

Return an int so we know whether an item is the sole source.

Source from the content-addressed store, hash-verified

311
312// Return an int so we know whether an item is the sole source.
313int actor::equip_flight() const
314{
315 // For the player, this is cached on ATTR_PERM_FLIGHT
316 return wearing_jewellery(RING_FLIGHT)
317 + wearing_ego(OBJ_ARMOUR, SPARM_FLYING)
318 + scan_artefacts(ARTP_FLY);
319}
320
321int actor::spirit_shield(bool items) const
322{

Callers 4

warn_about_changing_gearFunction · 0.80
_flying_in_new_formFunction · 0.80
land_playerFunction · 0.80
learned_something_newFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected