def _count_owned_good_substats(self): """ Count how many good substats that already owned by a rune """ available_sub = self._get_owned_substats_type() good_substat = DataMappingCollection.get_good_substats() owned_good = len([x for x in available_sub if x in good_substat]) return owned_good
def _count_available_good_substats(self): """ Count how many good substats that can be acuired as new stat """ owned_substats = self._get_owned_substats_include_innate( ) # Take innate stat into consideration when predicting NEW stats good_substat = DataMappingCollection.get_good_substats() available_good = len( [x for x in good_substat if x not in owned_substats]) available_good += self._additional_good_point_reduction() return available_good