getAssociatedAttribute method

Attribute getAssociatedAttribute()

Implementation

Attribute getAssociatedAttribute() {
  const attributes = [
    Attributes.agility,
    Attributes.charisma,
    Attributes.dexterity,
    Attributes.perception,
    Attributes.strength,
    Attributes.wisdom
  ];
  return attributes.where((element) => element.focuses.contains(this)).first;
}