Return an int so we know whether an item is the sole source.
| 311 | |
| 312 | // Return an int so we know whether an item is the sole source. |
| 313 | int 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 | |
| 321 | int actor::spirit_shield(bool items) const |
| 322 | { |
no outgoing calls
no test coverage detected