Function getActiveBodyparts

  • Count the number of active bodyparts of a given type

    Parameters

    • body: readonly ({} | {} | {} | {} | {} | {} | {} | {})[]

      Array of bodyparts Creep.body

    • type: BodyPartConstant

      Expected type

    Returns number

    Number of active bodyparts

Generated using TypeDoc